diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-09 04:19:47 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-09 04:19:47 +0000 |
commit | 8d83779e834f02d98b3423f63995382aacb9634e (patch) | |
tree | 5deca6944d8a41f6ab3849ea607859ea761b04f5 /etc/inc | |
parent | 2715fc5250d82646e81a70c85b8f7beba19b4e87 (diff) | |
download | pfsense-8d83779e834f02d98b3423f63995382aacb9634e.zip pfsense-8d83779e834f02d98b3423f63995382aacb9634e.tar.gz |
Use password from $config
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index e8178ae..67880a7 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1192,9 +1192,7 @@ function reload_interfaces() { function sync_webgui_passwords() { global $config; conf_mount_rw(); - $config['system']['password'] = crypt($_POST['password']); - $salt = md5(time()); - $crypted_pw = crypt($_POST['password'],$salt); + $crypted_pw = $config['system']['password'] /* sync root */ $fd = popen("/usr/sbin/pw usermod -n root -H 0", "w"); fwrite($fd, $crypted_pw); |