11 global $wgTitleBlacklistBlockAutoAccountCreation;
14 'blockAutoAccountCreation' => $wgTitleBlacklistBlockAutoAccountCreation
17 $this->blockAutoAccountCreation = (bool)
$params[
'blockAutoAccountCreation'];
21 $needOverrideOption =
false;
23 case AuthManager::ACTION_CREATE:
34 $req = AuthenticationRequest::getRequestByClass( $reqs,
35 TitleBlacklistAuthenticationRequest::class );
39 $override =
$req->ignoreTitleBlacklist;
48 $sv = StatusValue::newGood();
51 if ( !$autocreate && empty(
$options[
'creating'] ) || $this->blockAutoAccountCreation ) {
53 $user->getName(), $creator,
true, (
bool)$autocreate
static getMain()
Get the RequestContext object associated with the main request.
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,...
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
this hook is for auditing only $req
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options