summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-09 04:18:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-09 04:18:57 +0000
commit2715fc5250d82646e81a70c85b8f7beba19b4e87 (patch)
treefbea6cda39bc1b465b767feac742cd7339cb5dbd /usr/local/www/system.php
parent6b68e8d22ad4b89179e370fea6af78b18300e077 (diff)
downloadpfsense-2715fc5250d82646e81a70c85b8f7beba19b4e87.zip
pfsense-2715fc5250d82646e81a70c85b8f7beba19b4e87.tar.gz
Save new password correctly
Diffstat (limited to 'usr/local/www/system.php')
-rwxr-xr-xusr/local/www/system.php8
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);
OpenPOWER on IntegriCloud