MediaWiki REL1_31
|
Handles email notification / email address confirmation for account creation. More...
Public Member Functions | |
__construct ( $params=[]) | |
beginSecondaryAccountCreation ( $user, $creator, array $reqs) | |
Start an account creation flow. | |
beginSecondaryAuthentication ( $user, array $reqs) | |
Start an authentication flow. | |
getAuthenticationRequests ( $action, array $options) | |
Return the applicable list of AuthenticationRequests. | |
setConfig (Config $config) | |
Set configuration. | |
Public Member Functions inherited from MediaWiki\Auth\AbstractSecondaryAuthenticationProvider | |
autoCreatedAccount ( $user, $source) | |
Post-auto-creation callback. | |
continueSecondaryAccountCreation ( $user, $creator, array $reqs) | |
Continue an authentication flow. | |
continueSecondaryAuthentication ( $user, array $reqs) | |
Continue an authentication flow. | |
postAccountCreation ( $user, $creator, AuthenticationResponse $response) | |
Post-creation callback. | |
postAuthentication ( $user, AuthenticationResponse $response) | |
Post-login callback. | |
providerAllowsAuthenticationDataChange (AuthenticationRequest $req, $checkData=true) | |
Validate a change of authentication data (e.g. | |
providerAllowsPropertyChange ( $property) | |
Determine whether a property can change. | |
providerChangeAuthenticationData (AuthenticationRequest $req) | |
Change or remove authentication data (e.g. | |
providerRevokeAccessForUser ( $username) | |
@inheritDoc | |
testForAccountCreation ( $user, $creator, array $reqs) | |
Determine whether an account creation may begin. | |
testUserForCreation ( $user, $autocreate, array $options=[]) | |
Determine whether an account may be created. | |
Public Member Functions inherited from MediaWiki\Auth\AbstractAuthenticationProvider | |
getUniqueId () | |
@inheritDoc | |
setLogger (LoggerInterface $logger) | |
setManager (AuthManager $manager) | |
Set AuthManager. | |
Protected Attributes | |
bool | $sendConfirmationEmail |
Protected Attributes inherited from MediaWiki\Auth\AbstractAuthenticationProvider | |
Config | $config |
LoggerInterface | $logger |
AuthManager | $manager |
Handles email notification / email address confirmation for account creation.
Set 'no-email' to true (via AuthManager::setAuthenticationSessionData) to skip this provider. Primary providers doing so are expected to take care of email address confirmation.
Definition at line 13 of file EmailNotificationSecondaryAuthenticationProvider.php.
MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::__construct | ( | $params = [] | ) |
array | $params |
|
Definition at line 24 of file EmailNotificationSecondaryAuthenticationProvider.php.
References $params.
MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::beginSecondaryAccountCreation | ( | $user, | |
$creator, | |||
array | $reqs ) |
Start an account creation flow.
User | $user | User being created (has been added to the database). This may become a "UserValue" in the future, or User may be refactored into such. |
User | $creator | User doing the creation. This may become a "UserValue" in the future, or User may be refactored into such. |
AuthenticationRequest[] | $reqs |
Implements MediaWiki\Auth\SecondaryAuthenticationProvider.
Definition at line 47 of file EmailNotificationSecondaryAuthenticationProvider.php.
References DB_MASTER, MediaWiki\Auth\AuthenticationResponse\newPass(), and wfGetDB().
MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::beginSecondaryAuthentication | ( | $user, | |
array | $reqs ) |
Start an authentication flow.
Note that this may be called for a user even if beginSecondaryAccountCreation() was never called. The module should take the opportunity to do any necessary setup in that case.
User | $user | User being authenticated. This may become a "UserValue" in the future, or User may be refactored into such. |
AuthenticationRequest[] | $reqs |
Implements MediaWiki\Auth\SecondaryAuthenticationProvider.
Definition at line 43 of file EmailNotificationSecondaryAuthenticationProvider.php.
References MediaWiki\Auth\AuthenticationResponse\newAbstain().
MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::getAuthenticationRequests | ( | $action, | |
array | $options ) |
Return the applicable list of AuthenticationRequests.
Possible values for $action depend on whether the implementing class is also a PreAuthenticationProvider, PrimaryAuthenticationProvider, or SecondaryAuthenticationProvider.
string | $action | |
array | $options | Options are:
|
Implements MediaWiki\Auth\AuthenticationProvider.
Definition at line 39 of file EmailNotificationSecondaryAuthenticationProvider.php.
MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::setConfig | ( | Config | $config | ) |
Set configuration.
Config | $config |
Reimplemented from MediaWiki\Auth\AbstractAuthenticationProvider.
Definition at line 30 of file EmailNotificationSecondaryAuthenticationProvider.php.
References MediaWiki\Auth\AbstractAuthenticationProvider\$config.
|
protected |
Definition at line 17 of file EmailNotificationSecondaryAuthenticationProvider.php.