Manual:Hooks/LoginFormValidErrorMessages

Details

 * &$messages: Array of messages already added.

Allows to add additional error messages to be accepted in the  parameter on redirects to Special:UserLogin. The message given in the url parameter is supposed to state why the user should log in. This allows extensions to add further purposes in addition to the message keys already specified in.