X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Frecoverpassword.php;h=c17ed85a39101c417a1e72d04cbf05ac8ecc4626;hb=fe11f9a28c8ef2df46e09c53276f8d2184b03f2e;hp=1309cef9744e6020dbdb3326126bc8aa3c65729e;hpb=5e47b1b2a07d8b300c511115ca018ece172a8505;p=quix0rs-gnu-social.git diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php index 1309cef974..c17ed85a39 100644 --- a/actions/recoverpassword.php +++ b/actions/recoverpassword.php @@ -105,12 +105,8 @@ class RecoverpasswordAction extends Action if (!$user->email) { $orig = clone($user); $user->email = $email; - $result = $user->updateKeys($orig); - if (!$result) { - common_log_db_error($user, 'UPDATE', __FILE__); - // TRANS: Server error displayed when updating a user's e-mail address in the database fails while recovering a password. - $this->serverError(_('Could not update user with confirmed email address.')); - } + // Throws exception on failure. + $user->updateWithKeys($orig); } // Success!