summaryrefslogtreecommitdiff
path: root/www/wiki/includes/specials/SpecialRemoveCredentials.php
blob: 4efec035ebd318fe13d472ca87f6720996d613e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

use MediaWiki\Auth\AuthManager;

/**
 * Special change to remove credentials (such as a two-factor token).
 */
class SpecialRemoveCredentials extends SpecialChangeCredentials {
	protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];

	protected static $messagePrefix = 'removecredentials';

	protected static $loadUserData = false;

	public function __construct() {
		parent::__construct( 'RemoveCredentials' );
	}

	protected function getDefaultAction( $subPage ) {
		return AuthManager::ACTION_REMOVE;
	}

	protected function getRequestBlacklist() {
		return $this->getConfig()->get( 'RemoveCredentialsBlacklist' );
	}
}