summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-11 21:53:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-11 21:53:26 +0000
commit5bfc9fdf269783dee6a7374d0cdb41123e1e19cc (patch)
treedbd5ab39a3009a516b76c997e35cfaf7a36b9dc1 /etc/inc
parent9604ac1f24b676234836adc07035736fe455463a (diff)
downloadpfsense-5bfc9fdf269783dee6a7374d0cdb41123e1e19cc.zip
pfsense-5bfc9fdf269783dee6a7374d0cdb41123e1e19cc.tar.gz
Only write 1 line
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc6
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'];
OpenPOWER on IntegriCloud