From 3fbd2dcdc826b52b7ff2c9ae90341724665a918a Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 21 Feb 2023 14:34:36 +0100 Subject: [PATCH] fix not working changing password for account in SQL --- admin/inc/class.admin_account.inc.php | 3 ++- admin/inc/class.admin_cmd.inc.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_account.inc.php b/admin/inc/class.admin_account.inc.php index 76176e9ef9..3b249507cb 100644 --- a/admin/inc/class.admin_account.inc.php +++ b/admin/inc/class.admin_account.inc.php @@ -167,7 +167,7 @@ class admin_account } if($content['account_passwd']) { - // Don't put password into history + // Don't put password into history, also stops return below to bail out for only password changes $old['account_passwd'] = ''; } } @@ -234,6 +234,7 @@ class admin_account $cmd = new admin_cmd_edit_user(array( 'account' => (int)$content['account_id'], 'set' => $account, + 'password' => $account['account_passwd'], 'old' => $old, )+(array)$content['admin_cmd']); $cmd->run(); diff --git a/admin/inc/class.admin_cmd.inc.php b/admin/inc/class.admin_cmd.inc.php index aeaaa5fab0..b7003fa460 100644 --- a/admin/inc/class.admin_cmd.inc.php +++ b/admin/inc/class.admin_cmd.inc.php @@ -198,7 +198,7 @@ abstract class admin_cmd } /** - * runs the command either immediatly ($time=null) or shedules it for the given time + * runs the command either immediately ($time=null) or schedules it for the given time * * The command will be written to the database queue, incl. its scheduled start time or execution status *