MediaWiki
REL1_37
SpecialRemoveCredentials.php
Go to the documentation of this file.
1
<?php
2
3
use
MediaWiki\Auth\AuthManager
;
4
8
class
SpecialRemoveCredentials
extends
SpecialChangeCredentials
{
9
protected
static
$allowedActions
= [ AuthManager::ACTION_REMOVE ];
10
11
protected
static
$messagePrefix
=
'removecredentials'
;
12
13
protected
static
$loadUserData
=
false
;
14
18
public
function
__construct
(
AuthManager
$authManager
) {
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
}
AuthManagerSpecialPage\$subPage
string $subPage
Subpage of the special page.
Definition
AuthManagerSpecialPage.php:39
MediaWiki\Auth\AuthManager
This serves as the entry point to the authentication system.
Definition
AuthManager.php:102
SpecialChangeCredentials
Special change to change credentials (such as the password).
Definition
SpecialChangeCredentials.php:14
SpecialPage\$authManager
AuthManager null $authManager
Definition
SpecialPage.php:88
SpecialPage\getConfig
getConfig()
Shortcut to get main config object.
Definition
SpecialPage.php:878
SpecialRemoveCredentials
Special change to remove credentials (such as a two-factor token).
Definition
SpecialRemoveCredentials.php:8
SpecialRemoveCredentials\getDefaultAction
getDefaultAction( $subPage)
Get the default action for this special page, if none is given via URL/POST data.
Definition
SpecialRemoveCredentials.php:23
SpecialRemoveCredentials\getRequestBlacklist
getRequestBlacklist()
Allows blacklisting certain request types.
Definition
SpecialRemoveCredentials.php:27
SpecialRemoveCredentials\__construct
__construct(AuthManager $authManager)
Definition
SpecialRemoveCredentials.php:18
SpecialRemoveCredentials\$allowedActions
static $allowedActions
Definition
SpecialRemoveCredentials.php:9
SpecialRemoveCredentials\$loadUserData
static $loadUserData
Definition
SpecialRemoveCredentials.php:13
SpecialRemoveCredentials\$messagePrefix
static $messagePrefix
Definition
SpecialRemoveCredentials.php:11
includes
specials
SpecialRemoveCredentials.php
Generated on Fri Apr 5 2024 23:41:00 for MediaWiki by
1.9.8