|
MediaWiki master
|
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. | |
Helper functions for the login errors.
Definition at line 12 of file LoginErrorHelper.php.
|
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.
Definition at line 49 of file LoginErrorHelper.php.
References MediaWiki\MediaWikiServices\getInstance().
Referenced by MediaWiki\Exception\UserNotLoggedIn\report().