diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-04 00:10:44 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-04 00:10:44 +0000 |
commit | 721834135ecc1a81e3f9de0a19b1305974091238 (patch) | |
tree | 12b4e41e30f5c18fe3c392d0c81af91b91586613 /usr/local/www/system.php | |
parent | 00431e2faae6d5724ed5f0839344771a3396edc5 (diff) | |
download | pfsense-721834135ecc1a81e3f9de0a19b1305974091238.zip pfsense-721834135ecc1a81e3f9de0a19b1305974091238.tar.gz |
* Sync root and admin passwords
* Move sync logic into pfsense-utils:sync_webgui_passwords()
Diffstat (limited to 'usr/local/www/system.php')
-rwxr-xr-x | usr/local/www/system.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 01575bc..406affd 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -136,16 +136,8 @@ if ($_POST) { $config['system']['dnsallowoverride'] = $_POST['dnsallowoverride'] ? true : false; if ($_POST['password']) { - conf_mount_rw(); - $config['system']['password'] = crypt($_POST['password']); - $fd = popen("/usr/sbin/pw usermod -n root -H 0", "w"); - $salt = md5(time()); - $crypted_pw = crypt($_POST['password'],$salt); - fwrite($fd, $crypted_pw); - pclose($fd); update_changedesc("password changed via webConfigurator"); sync_webgui_passwords(); - conf_mount_ro(); } if ($changecount > 0) |