summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-11 21:51:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-11 21:51:15 +0000
commit9604ac1f24b676234836adc07035736fe455463a (patch)
tree70043fa16cc776c57f0716ecf5745bf624b85afb /etc/inc
parent823b7b0fae21b35f9f718016024a5ef7a301ab5f (diff)
downloadpfsense-9604ac1f24b676234836adc07035736fe455463a.zip
pfsense-9604ac1f24b676234836adc07035736fe455463a.tar.gz
Set $username correctly
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 12c2745..c440711 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1198,9 +1198,8 @@ function sync_webgui_passwords() {
return 1;
}
/* set admin account */
- $username = "admin";
+ $username = $config['system']['username'];
fwrite($fd, $username . ":" . $config['system']['password'] . "\n");
-
/* set defined user account */
if($username <> "admin") {
$username = $config['system']['username'];
OpenPOWER on IntegriCloud