3 namespace MediaWiki\Specials
;
5 use MediaWiki\Auth\AuthManager
;
6 use MediaWiki\MainConfigNames
;
9 * Special change to remove credentials (such as a two-factor token).
11 * @ingroup SpecialPage
13 class SpecialRemoveCredentials
extends SpecialChangeCredentials
{
15 protected static $allowedActions = [ AuthManager
::ACTION_REMOVE
];
18 protected static $messagePrefix = 'removecredentials';
21 protected static $loadUserData = false;
24 * @param AuthManager $authManager
26 public function __construct( AuthManager
$authManager ) {
27 parent
::__construct( $authManager );
28 $this->mName
= 'RemoveCredentials';
31 protected function getDefaultAction( $subPage ) {
32 return AuthManager
::ACTION_REMOVE
;
35 protected function getRequestBlacklist() {
36 return $this->getConfig()->get( MainConfigNames
::RemoveCredentialsBlacklist
);
41 * Retain the old class name for backwards compatibility.
42 * @deprecated since 1.41
44 class_alias( SpecialRemoveCredentials
::class, 'SpecialRemoveCredentials' );