MediaWiki
REL1_40
SpecialRemoveCredentials.php
Go to the documentation of this file.
1
<?php
2
3
use
MediaWiki\Auth\AuthManager
;
4
use
MediaWiki\MainConfigNames
;
5
9
class
SpecialRemoveCredentials
extends
SpecialChangeCredentials
{
10
protected
static
$allowedActions
= [ AuthManager::ACTION_REMOVE ];
11
12
protected
static
$messagePrefix
=
'removecredentials'
;
13
14
protected
static
$loadUserData
=
false
;
15
19
public
function
__construct
(
AuthManager
$authManager ) {
20
parent::__construct( $authManager );
21
$this->mName =
'RemoveCredentials'
;
22
}
23
24
protected
function
getDefaultAction
(
$subPage
) {
25
return
AuthManager::ACTION_REMOVE;
26
}
27
28
protected
function
getRequestBlacklist
() {
29
return
$this->
getConfig
()->get( MainConfigNames::RemoveCredentialsBlacklist );
30
}
31
}
AuthManagerSpecialPage\$subPage
string $subPage
Subpage of the special page.
Definition
AuthManagerSpecialPage.php:41
MediaWiki\Auth\AuthManager
This serves as the entry point to the authentication system.
Definition
AuthManager.php:106
MediaWiki\MainConfigNames
A class containing constants representing the names of configuration variables.
Definition
MainConfigNames.php:22
SpecialChangeCredentials
Special change to change credentials (such as the password).
Definition
SpecialChangeCredentials.php:17
SpecialPage\getConfig
getConfig()
Shortcut to get main config object.
Definition
SpecialPage.php:950
SpecialRemoveCredentials
Special change to remove credentials (such as a two-factor token).
Definition
SpecialRemoveCredentials.php:9
SpecialRemoveCredentials\getDefaultAction
getDefaultAction( $subPage)
Get the default action for this special page, if none is given via URL/POST data.
Definition
SpecialRemoveCredentials.php:24
SpecialRemoveCredentials\getRequestBlacklist
getRequestBlacklist()
Allows blacklisting certain request types.
Definition
SpecialRemoveCredentials.php:28
SpecialRemoveCredentials\__construct
__construct(AuthManager $authManager)
Definition
SpecialRemoveCredentials.php:19
SpecialRemoveCredentials\$allowedActions
static $allowedActions
Definition
SpecialRemoveCredentials.php:10
SpecialRemoveCredentials\$loadUserData
static $loadUserData
Definition
SpecialRemoveCredentials.php:14
SpecialRemoveCredentials\$messagePrefix
static $messagePrefix
Definition
SpecialRemoveCredentials.php:12
includes
specials
SpecialRemoveCredentials.php
Generated on Thu Jun 27 2024 14:04:23 for MediaWiki by
1.10.0