MediaWiki  master
SpecialRemoveCredentials.php
Go to the documentation of this file.
1 <?php
2 
5 
10  protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
11 
12  protected static $messagePrefix = 'removecredentials';
13 
14  protected static $loadUserData = false;
15 
19  public function __construct( AuthManager $authManager ) {
20  parent::__construct( $authManager );
21  $this->mName = 'RemoveCredentials';
22  }
23 
24  protected function getDefaultAction( $subPage ) {
25  return AuthManager::ACTION_REMOVE;
26  }
27 
28  protected function getRequestBlacklist() {
29  return $this->getConfig()->get( MainConfigNames::RemoveCredentialsBlacklist );
30  }
31 }
string $subPage
Subpage of the special page.
This serves as the entry point to the authentication system.
A class containing constants representing the names of configuration variables.
Special change to change credentials (such as the password).
AuthManager null $authManager
Definition: SpecialPage.php:89
getConfig()
Shortcut to get main config object.
Special change to remove credentials (such as a two-factor token).
getDefaultAction( $subPage)
Get the default action for this special page, if none is given via URL/POST data.
getRequestBlacklist()
Allows blacklisting certain request types.
__construct(AuthManager $authManager)