From 5bfc9fdf269783dee6a7374d0cdb41123e1e19cc Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 11 Oct 2005 21:53:26 +0000 Subject: Only write 1 line --- etc/inc/pfsense-utils.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'etc/inc') 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']; -- cgit v1.1