diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-28 16:59:54 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-28 16:59:54 -0500 |
commit | 76d6d92535ad26d2b951a433658d5de62c62a15f (patch) | |
tree | f281570f1c8acc7d6a7db326efedf36130eae98c /src/usr/local/www/system_advanced_notifications.php | |
parent | c8b10b4ce59161e21a93786d04237ad3f330178a (diff) | |
download | pfsense-76d6d92535ad26d2b951a433658d5de62c62a15f.zip pfsense-76d6d92535ad26d2b951a433658d5de62c62a15f.tar.gz |
FInished password hiding logic by ensuring $_POST['password'] != DMYPWD before updating
Diffstat (limited to 'src/usr/local/www/system_advanced_notifications.php')
-rw-r--r-- | src/usr/local/www/system_advanced_notifications.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/usr/local/www/system_advanced_notifications.php b/src/usr/local/www/system_advanced_notifications.php index 7bd5ee8..99bec31 100644 --- a/src/usr/local/www/system_advanced_notifications.php +++ b/src/usr/local/www/system_advanced_notifications.php @@ -126,7 +126,14 @@ if ($_POST) { // Growl $config['notifications']['growl']['ipaddress'] = $_POST['ipaddress']; - $config['notifications']['growl']['password'] = $_POST['password']; + if ($_POST['password'] != DMYPWD) { + if ($_POST['password'] == $_POST['password_confirm']) { + $config['notifications']['growl']['password'] = $_POST['password']; + } else { + $input_errors[] = gettext("Growl passwords must match"); + } + } + $config['notifications']['growl']['name'] = $_POST['name']; $config['notifications']['growl']['notification_name'] = $_POST['notification_name']; @@ -263,7 +270,7 @@ $section->addInput(new Form_Input( ))->setHelp('This is the IP address that you would like to send growl '. 'notifications to.'); -$section->addInput(new Form_Input( +$section->addPassword(new Form_Input( 'password', 'Password', 'text', |