mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Merge pull request #7044 from kravchukdim/patch-1
call password set for change password
This commit is contained in:
@ -57,7 +57,7 @@ class ResetPasswordForm extends Model
|
||||
public function resetPassword()
|
||||
{
|
||||
$user = $this->_user;
|
||||
$user->password = $this->password;
|
||||
$user->setPassword($this->password);
|
||||
$user->removePasswordResetToken();
|
||||
|
||||
return $user->save();
|
||||
|
||||
Reference in New Issue
Block a user