3 use MediaWiki\Auth\AuthManager;
6 * Special change to remove credentials (such as a two-factor token).
8 class SpecialRemoveCredentials extends SpecialChangeCredentials {
9 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
11 protected static $messagePrefix = 'removecredentials';
13 protected static $loadUserData = false;
15 public function __construct() {
16 parent::__construct( 'RemoveCredentials' );
19 protected function getDefaultAction( $subPage ) {
20 return AuthManager::ACTION_REMOVE;
23 protected function getRequestBlacklist() {
24 return $this->getConfig()->get( 'RemoveCredentialsBlacklist' );