diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-11 02:45:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-11 02:45:49 +0000 |
commit | f75941421ba5777646195afd29a3036564abd555 (patch) | |
tree | 5331bda59887b83c0c0f8e184a0b57060533f5ff /etc/inc/system.inc | |
parent | 9483f714ad75e7861a9494600e66aead6208f176 (diff) | |
download | pfsense-f75941421ba5777646195afd29a3036564abd555.zip pfsense-f75941421ba5777646195afd29a3036564abd555.tar.gz |
Sync htpasswd in pfsense-utils:sync_webgui_passwords()
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 56b1ca0..8378f1b 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -615,27 +615,6 @@ EOD; function system_password_configure() { global $config, $g; - - conf_mount_rw(); - - $fd = fopen("{$g['varrun_path']}/htpasswd", "w"); - if (!$fd) { - printf("Error: cannot open htpasswd in system_password_configure().\n"); - return 1; - } - - /* set admin account */ - $username = "admin"; - 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"); - } - - fclose($fd); - chmod("{$g['varrun_path']}/htpasswd", 0600); /* sync passwords */ sync_webgui_passwords(); |