mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +00:00
Add password reset request expiration
- Change password reset link to /lostpass/[pwdreset]
This commit is contained in:
parent
391c591322
commit
0888f51b4b
2 changed files with 95 additions and 60 deletions
|
@ -194,7 +194,12 @@ class User
|
|||
*/
|
||||
private static function updatePasswordHashed($uid, $pasword_hashed)
|
||||
{
|
||||
return dba::update('user', ['password' => $pasword_hashed, 'pwdreset' => ''], ['uid' => $uid]);
|
||||
$fields = [
|
||||
'password' => $pasword_hashed,
|
||||
'pwdreset' => null,
|
||||
'pwdreset_time' => null
|
||||
];
|
||||
return dba::update('user', $fields, ['uid' => $uid]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue