Expose $wgMaxArticleSize in siteinfo query api
[mediawiki.git] / includes / specials / SpecialRemoveCredentials.php
blob4efec035ebd318fe13d472ca87f6720996d613e8
1 <?php
3 use MediaWiki\Auth\AuthManager;
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 ];
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' );