summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.password
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.initial.password')
-rwxr-xr-xetc/rc.initial.password3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/rc.initial.password b/etc/rc.initial.password
index 64dd34e..f92055f 100755
--- a/etc/rc.initial.password
+++ b/etc/rc.initial.password
@@ -45,8 +45,7 @@ The webConfigurator password will be reset to the default (which is "' . strtolo
foreach ($config['system']['user'] as & $user) {
if (isset($user['uid']) && !$user['uid']) {
$user['name'] = "admin";
- set_local_user_password($user,strtolower($g['product_name']));
- set_local_user($user);
+ set_local_user($user, strtolower($g['product_name']));
write_config(gettext("password changed from console menu"));
system_password_configure();
break;
OpenPOWER on IntegriCloud