CSteipp has uploaded a new change for review.
https://gerrit.wikimedia.org/r/165609
Change subject: GlobalRename: Update AntiSpoof table
......................................................................
GlobalRename: Update AntiSpoof table
Local AntiSpoof tables are handled via the normal Renameuser hook.
Bug: 70620
Change-Id: I9a290c88d4006c5f28e2d717d5721382e52fcae7
---
M includes/GlobalRename/GlobalRenameUser.php
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/09/165609/1
diff --git a/includes/GlobalRename/GlobalRenameUser.php
b/includes/GlobalRename/GlobalRenameUser.php
index c6163bb..c523125 100644
--- a/includes/GlobalRename/GlobalRenameUser.php
+++ b/includes/GlobalRename/GlobalRenameUser.php
@@ -106,6 +106,10 @@
$this->newUser->getName()
);
+ // Update CA's AntiSpoof
+ $spoof = new CentralAuthSpoofUser( $this->newUser->getName() );
+ $spoof->update( $this->oldUser->getName() );
+
// From this point on all code using CentralAuthUser
// needs to use the new username, except for
// the renameInProgress function. Probably.
--
To view, visit https://gerrit.wikimedia.org/r/165609
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9a290c88d4006c5f28e2d717d5721382e52fcae7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: CSteipp <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits