Aaron Schulz has uploaded a new change for review.

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

Change subject: Made email confirmations load the user from the master
......................................................................

Made email confirmations load the user from the master

* This can help guard against stale reads if the user was
  created or changed a second ago.

Bug: T105896
Change-Id: Ie71e280c64888a7739bf3116f71c0909df064f19
---
M frontend/specialpages/actions/RequestAccount_body.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmAccount 
refs/changes/25/229025/1

diff --git a/frontend/specialpages/actions/RequestAccount_body.php 
b/frontend/specialpages/actions/RequestAccount_body.php
old mode 100644
new mode 100755
index 75339c4..4e3ade1
--- a/frontend/specialpages/actions/RequestAccount_body.php
+++ b/frontend/specialpages/actions/RequestAccount_body.php
@@ -390,7 +390,7 @@
                        $out->returnToMain();
                } else {
                        # Maybe the user confirmed after account was created...
-                       $user = User::newFromConfirmationCode( $code );
+                       $user = User::newFromConfirmationCode( $code, 
User::READ_LATEST );
                        if ( is_object( $user ) ) {
                                $user->confirmEmail();
                                $user->saveSettings();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie71e280c64888a7739bf3116f71c0909df064f19
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmAccount
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

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

Reply via email to