Manual:Hooks/AuthPluginAutoCreate

From MediaWiki.org
Jump to: navigation, search
AuthPluginAutoCreate
Available from version 1.13.0
Called when creating a local account for an user logged in from an external authentication method

Define function:
public static function onAuthPluginAutoCreate( $user ) { ... }

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

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


[edit] Details

  • $user: User object created locally
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox