diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-09 04:18:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-09 04:18:57 +0000 |
commit | 2715fc5250d82646e81a70c85b8f7beba19b4e87 (patch) | |
tree | fbea6cda39bc1b465b767feac742cd7339cb5dbd /usr/local | |
parent | 6b68e8d22ad4b89179e370fea6af78b18300e077 (diff) | |
download | pfsense-2715fc5250d82646e81a70c85b8f7beba19b4e87.zip pfsense-2715fc5250d82646e81a70c85b8f7beba19b4e87.tar.gz |
Save new password correctly
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/system.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 406affd..2f80674 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -134,11 +134,11 @@ if ($_POST) { unset($config['system']['dnsallowoverride']); $config['system']['dnsallowoverride'] = $_POST['dnsallowoverride'] ? true : false; - - if ($_POST['password']) { + if ($_POST['password']) { + $config['system']['password'] = crypt($_POST['password']); update_changedesc("password changed via webConfigurator"); - sync_webgui_passwords(); - } + sync_webgui_passwords(); + } if ($changecount > 0) write_config($changedesc); |