MediaWiki master
SpecialRemoveCredentials.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Specials;
4
7
12 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
13
14 protected static $messagePrefix = 'removecredentials';
15
16 protected static $loadUserData = false;
17
21 public function __construct( AuthManager $authManager ) {
22 parent::__construct( $authManager );
23 $this->mName = 'RemoveCredentials';
24 }
25
26 protected function getDefaultAction( $subPage ) {
27 return AuthManager::ACTION_REMOVE;
28 }
29
30 protected function getRequestBlacklist() {
32 }
33}
34
39class_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.
Special change to change 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.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...