RecoverpasswordAction uses User->setPassword()
This commit is contained in:
parent
29847f172f
commit
b0bf620c61
@ -322,16 +322,7 @@ class RecoverpasswordAction extends Action
|
||||
}
|
||||
|
||||
// OK, we're ready to go
|
||||
|
||||
$original = clone($user);
|
||||
|
||||
$user->password = common_munge_password($newpassword, $user->getProfile());
|
||||
|
||||
if (!$user->update($original)) {
|
||||
common_log_db_error($user, 'UPDATE', __FILE__);
|
||||
// TRANS: Reset password form validation error message.
|
||||
$this->serverError(_('Cannot save new password.'));
|
||||
}
|
||||
$user->setPassword($newpassword);
|
||||
|
||||
$this->clearTempUser();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user