11 global $wgTitleBlacklistBlockAutoAccountCreation;
14 'blockAutoAccountCreation' => $wgTitleBlacklistBlockAutoAccountCreation
17 $this->blockAutoAccountCreation = (bool)$params[
'blockAutoAccountCreation'];
21 $needOverrideOption =
false;
23 case AuthManager::ACTION_CREATE:
24 $user = User::newFromName( $options[
'username'] ) ?:
new User();
34 $req = AuthenticationRequest::getRequestByClass( $reqs,
35 TitleBlacklistAuthenticationRequest::class );
39 $override = $req->ignoreTitleBlacklist;
48 $sv = StatusValue::newGood();
49 $creator = RequestContext::getMain()->getUser();
51 if ( !$autocreate && empty( $options[
'creating'] ) || $this->blockAutoAccountCreation ) {
53 $user->getName(), $creator,
true, (
bool)$autocreate
An authentication request that allows users with sufficiently high privileges to skip the title black...
static testUserName( $userName, User $creatingUser, $override=true, $log=false)
Check whether a user name is acceptable for account creation or autocreation, and explain why not if ...
testForAccountCreation( $user, $creator, array $reqs)
Determine whether an account creation may begin.
getAuthenticationRequests( $action, array $options)
Return the applicable list of AuthenticationRequests.
testUserForCreation( $user, $autocreate, array $options=[])
Determine whether an account may be created.
$blockAutoAccountCreation
static userCanOverride( $user, $action)
Inidcates whether user can override blacklist on certain action.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...