wiki.techinc.nl/includes/specials/SpecialRemoveCredentials.php
Umherirrender 6635b31599 specials: Add missing documentation to class properties
Add doc-typehints to class properties found by the PropertyDocumentation
sniff to improve the documentation.

Once the sniff is enabled it avoids that new code is missing type
declarations. This is focused on documentation and does not change code.

Change-Id: I41ad89cc3112a2911ad40c55583bff2d7787da68
2024-09-13 19:10:50 +00:00

44 lines
1.1 KiB
PHP

<?php
namespace MediaWiki\Specials;
use MediaWiki\Auth\AuthManager;
use MediaWiki\MainConfigNames;
/**
* Special change to remove credentials (such as a two-factor token).
*
* @ingroup SpecialPage
*/
class SpecialRemoveCredentials extends SpecialChangeCredentials {
/** @inheritDoc */
protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
/** @inheritDoc */
protected static $messagePrefix = 'removecredentials';
/** @inheritDoc */
protected static $loadUserData = false;
/**
* @param AuthManager $authManager
*/
public function __construct( AuthManager $authManager ) {
parent::__construct( $authManager );
$this->mName = 'RemoveCredentials';
}
protected function getDefaultAction( $subPage ) {
return AuthManager::ACTION_REMOVE;
}
protected function getRequestBlacklist() {
return $this->getConfig()->get( MainConfigNames::RemoveCredentialsBlacklist );
}
}
/**
* Retain the old class name for backwards compatibility.
* @deprecated since 1.41
*/
class_alias( SpecialRemoveCredentials::class, 'SpecialRemoveCredentials' );