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();
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,...
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
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))