jenkins-bot has submitted this change and it was merged.

Change subject: Make acceptNewUserName public
......................................................................


Make acceptNewUserName public

Bug: T93543
Change-Id: I713f969c62aab0f8e877f1d4381758e7389ebe0a
---
M TitleBlacklist.hooks.php
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Krinkle: Looks good to me, but someone else must approve
  Alex Monk: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/TitleBlacklist.hooks.php b/TitleBlacklist.hooks.php
index 7e342d9..062aa13 100644
--- a/TitleBlacklist.hooks.php
+++ b/TitleBlacklist.hooks.php
@@ -134,11 +134,12 @@
         * Check whether a user name is acceptable,
         * and set a message if unacceptable.
         *
-        * Used by abortNewAccount and centralAuthAutoCreate
+        * Used by abortNewAccount and centralAuthAutoCreate.
+        * May also be called externally to vet alternate account names.
         *
         * @return bool Acceptable
         */
-       private static function acceptNewUserName( $userName, $permissionsUser, 
&$err, $override = true, $log = false ) {
+       public static function acceptNewUserName( $userName, $permissionsUser, 
&$err, $override = true, $log = false ) {
                global $wgUser;
                $title = Title::makeTitleSafe( NS_USER, $userName );
                $blacklisted = TitleBlacklist::singleton()->userCannot( $title, 
$permissionsUser,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I713f969c62aab0f8e877f1d4381758e7389ebe0a
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/TitleBlacklist
Gerrit-Branch: master
Gerrit-Owner: Andrew Bogott <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to