MediaWiki master
SpecialRemoveCredentials.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Specials;
4
7
15 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
16
18 protected static $messagePrefix = 'removecredentials';
19
21 protected static $loadUserData = false;
22
26 public function __construct( AuthManager $authManager ) {
27 parent::__construct( $authManager );
28 $this->mName = 'RemoveCredentials';
29 }
30
31 protected function getDefaultAction( $subPage ) {
32 return AuthManager::ACTION_REMOVE;
33 }
34
35 protected function getRequestBlacklist() {
37 }
38}
39
44class_alias( SpecialRemoveCredentials::class, 'SpecialRemoveCredentials' );
This serves as the entry point to the authentication system.
A class containing constants representing the names of configuration variables.
const RemoveCredentialsBlacklist
Name constant for the RemoveCredentialsBlacklist setting, for use with Config::get()
getConfig()
Shortcut to get main config object.
Change user credentials, such as the password.
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.