]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/confirmaddress.php
setPassword now runs validate too
[quix0rs-gnu-social.git] / actions / confirmaddress.php
index 1e2d3a92d6d3104a8bc6650d9fe45e9726308c6e..806851001e3cf45e4a0f13717b9589b8cd89060d 100644 (file)
@@ -108,13 +108,8 @@ class ConfirmaddressAction extends Action
                 $cur->smsemail = $carrier->toEmailAddress($cur->sms);
             }
 
-            $result = $cur->updateWithKeys($orig_user);
-
-            if (!$result) {
-                common_log_db_error($cur, 'UPDATE', __FILE__);
-                // TRANS: Server error displayed when confirming an e-mail address or IM address fails.
-                $this->serverError(_('Could not update user.'));
-            }
+            // Throws exception on failure.
+            $cur->updateWithKeys($orig_user);
 
             if ($type == 'email') {
                 $cur->emailChanged();