MediaWiki master
SpecialRemoveCredentials.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Specials;
4
7
14 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
15
16 protected static $messagePrefix = 'removecredentials';
17
18 protected static $loadUserData = false;
19
23 public function __construct( AuthManager $authManager ) {
24 parent::__construct( $authManager );
25 $this->mName = 'RemoveCredentials';
26 }
27
28 protected function getDefaultAction( $subPage ) {
29 return AuthManager::ACTION_REMOVE;
30 }
31
32 protected function getRequestBlacklist() {
34 }
35}
36
41class_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.