MediaWiki master
MediaWiki\Exception\LoginErrorHelper Class Reference

Helper functions for the login errors. More...

Static Public Member Functions

static getValidErrorMessages ()
 Returns an array of all error and warning messages that can be displayed on Special:UserLogin or Special:CreateAccount through the ?error or ?warning GET parameters.
 

Detailed Description

Helper functions for the login errors.

Since
1.46

Definition at line 12 of file LoginErrorHelper.php.

Member Function Documentation

◆ getValidErrorMessages()

static MediaWiki\Exception\LoginErrorHelper::getValidErrorMessages ( )
static

Returns an array of all error and warning messages that can be displayed on Special:UserLogin or Special:CreateAccount through the ?error or ?warning GET parameters.

Special:UserLogin and Special:CreateAccount can show an error or warning message on the form when coming from another page using the aforementioned GET parameters.

Further keys can be added by the LoginFormValidErrorMessages hook. If a message key is not in this list, then no redirect will be performed to Special:UserLogin or Special:CreateAccount.

Returns
string[]
See also
LoginErrorHelper::$validErrorMessages

Definition at line 49 of file LoginErrorHelper.php.

References MediaWiki\MediaWikiServices\getInstance().

Referenced by MediaWiki\Exception\UserNotLoggedIn\report().


The documentation for this class was generated from the following file: