* @param int $constant One of the LoginForm::… constants
* @param string|null $msg Optional message key, will be derived from $constant otherwise
* @param string $hook Name of the hook for error logging and exception messages
* @return StatusValue
*/
* @param int $constant One of the LoginForm::… constants
* @param string|null $msg Optional message key, will be derived from $constant otherwise
* @param string $hook Name of the hook for error logging and exception messages
* @return StatusValue
*/