Go to the documentation of this file.
11 parent::__construct(
'UnlinkAccounts' );
15 return 'UnlinkAccount';
19 return AuthManager::ACTION_UNLINK;
31 return AuthManager::singleton()->canLinkAccounts();
35 return $this->
getConfig()->get(
'RemoveCredentialsBlacklist' );
43 if ( $this->authAction === AuthManager::ACTION_UNLINK ) {
45 $titleMessage = $this->
msg(
'cannotunlink-no-provider-title' );
46 $errorMessage = $this->
msg(
'cannotunlink-no-provider' );
68 if (
$response->status === AuthenticationResponse::FAIL ) {
74 $status->warning( $this->
msg(
'unlinkaccounts-success' ) );
81 SessionManager::singleton()->invalidateSessionsForUser( $user );
82 $session->setUser( $user );
getPageTitle( $subpage=false)
Get a self-referential title object.
getLoginSecurityLevel()
Tells if the special page does something security-sensitive and needs extra defense against a stolen ...
displayForm( $status)
Display the form.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
static newFatal( $message,... $parameters)
Factory function for fatal errors.
getOutput()
Get the OutputPage being used for this instance.
isListed()
Whether this special page is listed in Special:SpecialPages.
A special page subclass for authentication-related special pages.
trySubmit()
Attempts to do an authentication step with the submitted data.
getDefaultAction( $subPage)
Get the default action for this special page, if none is given via URL/POST data.
string $subPage
Subpage of the special page.
performAuthenticationStep( $action, array $requests)
getConfig()
Shortcut to get main config object.
getGroupName()
Under which header this special page is listed in Special:SpecialPages.
execute( $subPage)
Default execute method Checks user permissions.
loadAuth( $subPage, $authAction=null, $reset=false)
Load or initialize $authAction, $authRequests and $subPage.
getRequestBlacklist()
Allows blacklisting certain request types.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getUser()
Shortcut to get the User executing this instance.
handleFormSubmit( $data)
Submit handler callback for HTMLForm.
static newGood( $value=null)
Factory function for good results.
isActionAllowed( $action)
Checks whether AuthManager is ready to perform the action.
getRequest()
Get the WebRequest being used for this instance.
An error page which can definitely be safely rendered using the OutputPage.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...