summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-28 16:11:17 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-28 16:11:17 -0500
commitc8b10b4ce59161e21a93786d04237ad3f330178a (patch)
tree9e696532f61abc22b52ebb86d678ec7c1ac356c4 /src/usr/local/www/services_dyndns_edit.php
parent690026d8256f15fd3b1df97ca1cba8f4815e425e (diff)
downloadpfsense-c8b10b4ce59161e21a93786d04237ad3f330178a.zip
pfsense-c8b10b4ce59161e21a93786d04237ad3f330178a.tar.gz
Added new addPassword method and password == password_confirm validation where required.
Diffstat (limited to 'src/usr/local/www/services_dyndns_edit.php')
-rw-r--r--src/usr/local/www/services_dyndns_edit.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php
index 7330874..a2d797b 100644
--- a/src/usr/local/www/services_dyndns_edit.php
+++ b/src/usr/local/www/services_dyndns_edit.php
@@ -136,6 +136,10 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
+ if ($_POST['passwordfld'] != $_POST['passwordfld_confirm']) {
+ $input_errors[] = gettext("Password and confirmed password must match.");
+ }
+
if (isset($_POST['host']) && in_array("host", $reqdfields)) {
/* Namecheap can have a @. in hostname */
if ($pconfig['type'] == "namecheap" && substr($_POST['host'], 0, 2) == '@.') {
@@ -349,7 +353,7 @@ $section->addInput(new Form_Input(
'GleSYS: Enter your API user.' . '<br />' .
'For Custom Entries, Username and Password represent HTTP Authentication username and passwords.');
-$section->addInput(new Form_Input(
+$section->addPassword(new Form_Input(
'passwordfld',
'Password',
'password',
OpenPOWER on IntegriCloud