MediaWiki REL1_32
SpamBlacklistPreAuthenticationProvider Class Reference
Inheritance diagram for SpamBlacklistPreAuthenticationProvider:
Collaboration diagram for SpamBlacklistPreAuthenticationProvider:

Public Member Functions

 testForAccountCreation ( $user, $creator, array $reqs)
 Determine whether an account creation may begin.
 
- Public Member Functions inherited from MediaWiki\Auth\AbstractPreAuthenticationProvider
 getAuthenticationRequests ( $action, array $options)
 Return the applicable list of AuthenticationRequests.
 
 postAccountCreation ( $user, $creator, AuthenticationResponse $response)
 Post-creation callback.
 
 postAccountLink ( $user, AuthenticationResponse $response)
 Post-link callback.
 
 postAuthentication ( $user, AuthenticationResponse $response)
 Post-login callback.
 
 testForAccountLink ( $user)
 Determine whether an account may linked to another authentication method.
 
 testForAuthentication (array $reqs)
 Determine whether an authentication may begin.
 
 testUserForCreation ( $user, $autocreate, array $options=[])
 Determine whether an account may be created.
 
- Public Member Functions inherited from MediaWiki\Auth\AbstractAuthenticationProvider
 getUniqueId ()
 @inheritDoc
 
 setConfig (Config $config)
 Set configuration.
 
 setLogger (LoggerInterface $logger)
 
 setManager (AuthManager $manager)
 Set AuthManager.
 

Additional Inherited Members

- Protected Attributes inherited from MediaWiki\Auth\AbstractAuthenticationProvider
Config $config
 
LoggerInterface $logger
 
AuthManager $manager
 

Detailed Description

Definition at line 5 of file SpamBlacklistPreAuthenticationProvider.php.

Member Function Documentation

◆ testForAccountCreation()

SpamBlacklistPreAuthenticationProvider::testForAccountCreation ( $user,
$creator,
array $reqs )

Determine whether an account creation may begin.

Called from AuthManager::beginAccountCreation()

Note
No need to test if the account exists, AuthManager checks that
Parameters
User$userUser being created (not added to the database yet). This may become a "UserValue" in the future, or User may be refactored into such.
User$creatorUser doing the creation. This may become a "UserValue" in the future, or User may be refactored into such.
AuthenticationRequest[]$reqs
Returns
StatusValue

Reimplemented from MediaWiki\Auth\AbstractPreAuthenticationProvider.

Definition at line 6 of file SpamBlacklistPreAuthenticationProvider.php.

References BaseBlacklist\getEmailBlacklist().


The documentation for this class was generated from the following file: