Fix password changing

This commit is contained in:
ohartl 2016-02-21 04:33:37 +01:00
parent d3c56b815c
commit 0b1c3788ab

View file

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