Fix password changing
This commit is contained in:
parent
d3c56b815c
commit
0b1c3788ab
1 changed files with 4 additions and 1 deletions
|
@ -202,7 +202,10 @@ class User extends AbstractModel
|
|||
{
|
||||
Auth::validateNewPassword($password, $passwordRepeated);
|
||||
|
||||
Auth::changeUserPassword($this->getId(), $password);
|
||||
$passwordHash = Auth::generatePasswordHash($password);
|
||||
|
||||
$this->setPasswordHash($passwordHash);
|
||||
$this->save();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue