summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_hasync.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-28 16:59:54 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-28 16:59:54 -0500
commit76d6d92535ad26d2b951a433658d5de62c62a15f (patch)
treef281570f1c8acc7d6a7db326efedf36130eae98c /src/usr/local/www/system_hasync.php
parentc8b10b4ce59161e21a93786d04237ad3f330178a (diff)
downloadpfsense-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_hasync.php')
-rwxr-xr-xsrc/usr/local/www/system_hasync.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/system_hasync.php b/src/usr/local/www/system_hasync.php
index 8c44ae9..6104d5c 100755
--- a/src/usr/local/www/system_hasync.php
+++ b/src/usr/local/www/system_hasync.php
@@ -95,13 +95,15 @@ if ($_POST) {
foreach ($checkbox_names as $name) {
$a_hasync[$name] = $pconfig[$name] ? $pconfig[$name] : false;
}
- $a_hasync['pfsyncpeerip'] = $pconfig['pfsyncpeerip'];
+ $a_hasync['pfsyncpeerip'] = $pconfig['pfsyncpeerip'];
$a_hasync['pfsyncinterface'] = $pconfig['pfsyncinterface'];
$a_hasync['synchronizetoip'] = $pconfig['synchronizetoip'];
- $a_hasync['username'] = $pconfig['username'];
+ $a_hasync['username'] = $pconfig['username'];
if ($pconfig['passwordfld'] == $pconfig['passwordfld_confirm']) {
- $a_hasync['password'] = $pconfig['passwordfld'];
+ if ($pconfig['passwordfld'] != DMYPWD) {
+ $a_hasync['password'] = $pconfig['passwordfld'];
+ }
} else {
$input_errors[] = gettext("Password and confirmation must match.");
}
OpenPOWER on IntegriCloud