< Manual:Hooks
![]() | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.27.0. This was deprecated as part of the changes that introduced AuthManager.Please see LocalUserCreated for an alternative way to use this feature. |
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: | In extension.json:
{
"Hooks": {
"AuthPluginAutoCreate": "MyExtensionHooks::onAuthPluginAutoCreate"
}
}
|
Called from: | File(s): specials/SpecialUserLogin.php |
Interface: | AuthPluginAutoCreateHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:AuthPluginAutoCreate extensions.
Details
- $user: User object created locally
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.