MediaWiki master
SpecialRemoveCredentials.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Specials;
4
8
16 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
17
19 protected static $messagePrefix = 'removecredentials';
20
22 protected static $loadUserData = false;
23
24 public function __construct( AuthManager $authManager, SessionManager $sessionManager ) {
25 parent::__construct( $authManager, $sessionManager );
26 $this->mName = 'RemoveCredentials';
27 }
28
30 protected function getDefaultAction( $subPage ) {
31 return AuthManager::ACTION_REMOVE;
32 }
33
35 protected function getRequestBlacklist() {
37 }
38}
39
44class_alias( SpecialRemoveCredentials::class, 'SpecialRemoveCredentials' );
AuthManager is the authentication system in MediaWiki and serves entry point for authentication.
A class containing constants representing the names of configuration variables.
const RemoveCredentialsBlacklist
Name constant for the RemoveCredentialsBlacklist setting, for use with Config::get()
This serves as the entry point to the MediaWiki session handling system.
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.Subclasses should ove...
getRequestBlacklist()
Allows blacklisting certain request types.to override array A list of AuthenticationRequest subclass ...
__construct(AuthManager $authManager, SessionManager $sessionManager)