MediaWiki REL1_37
SpecialRemoveCredentials.php
Go to the documentation of this file.
1<?php
2
4
9 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
10
11 protected static $messagePrefix = 'removecredentials';
12
13 protected static $loadUserData = false;
14
19 parent::__construct( $authManager );
20 $this->mName = 'RemoveCredentials';
21 }
22
23 protected function getDefaultAction( $subPage ) {
24 return AuthManager::ACTION_REMOVE;
25 }
26
27 protected function getRequestBlacklist() {
28 return $this->getConfig()->get( 'RemoveCredentialsBlacklist' );
29 }
30}
string $subPage
Subpage of the special page.
This serves as the entry point to the authentication system.
Special change to change credentials (such as the password).
AuthManager null $authManager
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)