Nemo bis has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/212913

Change subject: Don't erase the email addresses on a wiki without CentralAuth
......................................................................

Don't erase the email addresses on a wiki without CentralAuth

No reason to, AFAICS.

Change-Id: I4e6627d8bfdf6c13bde447bfec5ea366fc5a9714
---
M includes/BounceHandlerActions.php
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BounceHandler 
refs/changes/13/212913/1

diff --git a/includes/BounceHandlerActions.php 
b/includes/BounceHandlerActions.php
index cab659c..3a2c0f8 100644
--- a/includes/BounceHandlerActions.php
+++ b/includes/BounceHandlerActions.php
@@ -114,8 +114,7 @@
         */
        public function unConfirmUserEmail( User $user ) {
                $userEmail = $user->getEmail();
-               $res = $user->invalidateEmail();
-               $user->saveSettings();
+               $res = $user->setEmailAuthenticationTimestamp( null );
                if ( $res ) {
                        wfDebugLog( 'BounceHandler',
                                "Un-subscribed $userEmail for exceeding Bounce 
limit $this->bounceRecordLimit"

-- 
To view, visit https://gerrit.wikimedia.org/r/212913
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e6627d8bfdf6c13bde447bfec5ea366fc5a9714
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BounceHandler
Gerrit-Branch: master
Gerrit-Owner: Nemo bis <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to