mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
hash password when setting new password
This commit is contained in:
parent
6250a212b3
commit
ce9be505fd
|
@ -2118,7 +2118,7 @@ class RestapiController { /* {{{ */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$operation = $account->setPwd($newPassword);
|
$operation = $account->setPwd(seed_pass_hash($newPassword));
|
||||||
|
|
||||||
if (!$operation){
|
if (!$operation){
|
||||||
return $response->withJson(array('success'=>false, 'message'=>'', 'data'=>'Could not change password.'), 404);
|
return $response->withJson(array('success'=>false, 'message'=>'', 'data'=>'Could not change password.'), 404);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user