From 2715fc5250d82646e81a70c85b8f7beba19b4e87 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 9 Oct 2005 04:18:57 +0000 Subject: Save new password correctly --- usr/local/www/system.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr/local/www') 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); -- cgit v1.1