Add rate limiter to Special:ConfirmEmail
[lhc/web/wiklou.git] / includes / specials / SpecialRemoveCredentials.php
1 <?php
2
3 use MediaWiki\Auth\AuthManager;
4
5 /**
6 * Special change to remove credentials (such as a two-factor token).
7 */
8 class SpecialRemoveCredentials extends SpecialChangeCredentials {
9 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
10
11 protected static $messagePrefix = 'removecredentials';
12
13 protected static $loadUserData = false;
14
15 public function __construct() {
16 parent::__construct( 'RemoveCredentials' );
17 }
18
19 protected function getDefaultAction( $subPage ) {
20 return AuthManager::ACTION_REMOVE;
21 }
22
23 protected function getRequestBlacklist() {
24 return $this->getConfig()->get( 'RemoveCredentialsBlacklist' );
25 }
26 }