MediaWiki master
SpecialRemoveCredentials.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Specials;
4
5use MediaWiki\Auth\AuthManager;
6use MediaWiki\MainConfigNames;
7use MediaWiki\Session\SessionManager;
8
16 protected static $allowedActions = [ AuthManager::ACTION_REMOVE ];
17
19 protected static $messagePrefix = 'removecredentials';
20
22 protected static $loadUserData = false;
23
24 public function __construct( AuthManager $authManager, SessionManager $sessionManager ) {
25 parent::__construct( $authManager, $sessionManager );
26 $this->mName = 'RemoveCredentials';
27 }
28
30 protected function getDefaultAction( $subPage ) {
31 return AuthManager::ACTION_REMOVE;
32 }
33
35 protected function getRequestBlacklist() {
37 }
38}
39
40// @codeCoverageIgnoreStart
45class_alias( SpecialRemoveCredentials::class, 'SpecialRemoveCredentials' );
46// @codeCoverageIgnoreEnd
AuthManager is the authentication system in MediaWiki and serves entry point for authentication.
const RemoveCredentialsBlacklist
Name constant for the RemoveCredentialsBlacklist setting, for use with Config\get().
This serves as the entry point to the MediaWiki session handling system.
getConfig()
Shortcut to get main config object.
Change user credentials, such as the password.
Special change to remove credentials (such as a two-factor token).
getDefaultAction( $subPage)
Get the default action for this special page if none is given via URL/POST data.Subclasses should ove...
getRequestBlacklist()
Allows blacklisting certain request types.to override array A list of AuthenticationRequest subclass ...
__construct(AuthManager $authManager, SessionManager $sessionManager)