Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / specials / SpecialRemoveCredentials.php
blob7f08f2c7145a61c9dc2a17e61eb99db81202461d
1 <?php
3 namespace MediaWiki\Specials;
5 use MediaWiki\Auth\AuthManager;
6 use MediaWiki\MainConfigNames;
8 /**
9 * Special change to remove credentials (such as a two-factor token).
11 * @ingroup SpecialPage
13 class SpecialRemoveCredentials extends SpecialChangeCredentials {
14 /** @inheritDoc */
15 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
17 /** @inheritDoc */
18 protected static $messagePrefix = 'removecredentials';
20 /** @inheritDoc */
21 protected static $loadUserData = false;
23 /**
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 );
40 /**
41 * Retain the old class name for backwards compatibility.
42 * @deprecated since 1.41
44 class_alias( SpecialRemoveCredentials::class, 'SpecialRemoveCredentials' );