From: Mikael Nordfeldth Date: Wed, 30 Dec 2015 16:53:43 +0000 (+0100) Subject: RecoverpasswordAction uses User->setPassword() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b0bf620c6167b591fbb30b6245bc58075ab4d7f2;p=quix0rs-gnu-social.git RecoverpasswordAction uses User->setPassword() --- diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php index 1cbb73fd4a..a3a5b8e5bc 100644 --- a/actions/recoverpassword.php +++ b/actions/recoverpassword.php @@ -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();