diff options
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index c440711..b7d683a 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1199,12 +1199,14 @@ function sync_webgui_passwords() { } /* set admin account */ $username = $config['system']['username']; - fwrite($fd, $username . ":" . $config['system']['password'] . "\n"); + /* set defined user account */ if($username <> "admin") { $username = $config['system']['username']; fwrite($fd, $username . ":" . $config['system']['password'] . "\n"); - } + } else { + fwrite($fd, $username . ":" . $config['system']['password'] . "\n"); + } fclose($fd); chmod("{$g['varrun_path']}/htpasswd", 0600); $crypted_pw = $config['system']['password']; |