fix not working changing password for account in SQL

This commit is contained in:
ralf 2023-02-21 14:34:36 +01:00
parent 369bddef2f
commit 3fbd2dcdc8
2 changed files with 3 additions and 2 deletions

View File

@ -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();

View File

@ -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
*