Manual:Hooks/AbortAutoAccount

Details

 * $user: the User object about to be created (read-only, incomplete)
 * &$abortMsg: out parameter: name of error message to be displayed to user

Return false to cancel automated local account creation.

Deprecated
From MediaWiki 1.27 on, the hook is deprecated and superseded by AuthManager functionality. Any logic in it should probably moved to a class implementing, into the   method.