Manual:Hooks/AbortAutoAccount

From MediaWiki.org
Jump to: navigation, search
AbortAutoAccount
Available from version 1.18.0 (r85410)
Allow to cancel automated local account creation, where normally authentication against an external auth plugin would be creating a local account.

Define function:
public static function onAbortAutoAccount( $user, &$abortMsg ) { ... }

Attach hook:
$wgHooks['AbortAutoAccount'][] = 'MyExtensionHooks::onAbortAutoAccount';
Called from: SpecialUserlogin.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:AbortAutoAccount extensions.


[edit] 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.

Language: English  • Bahasa Indonesia • 日本語
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox