hash password when setting new password

This commit is contained in:
Uwe Steinmann 2024-04-23 18:16:06 +02:00
parent 6250a212b3
commit ce9be505fd

View File

@ -2118,7 +2118,7 @@ class RestapiController { /* {{{ */
return;
}
$operation = $account->setPwd($newPassword);
$operation = $account->setPwd(seed_pass_hash($newPassword));
if (!$operation){
return $response->withJson(array('success'=>false, 'message'=>'', 'data'=>'Could not change password.'), 404);