Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/AuthPluginAutoCreate

From mediawiki.org
<Manual:Hooks
Deprecated: This feature isdeprecated and should no longer be used, however it is possibly still available for reasons of backwardscompatibility. This feature was deprecated in version 1.27.0. This was deprecated as part of the changes that introducedAuthManager.SeeLocalUserCreated for an alternative way to use this feature.
AuthPluginAutoCreate
Available fromversion 1.13.0
Called when creating a local account for an user logged in from an external authentication method
Define function:
publicstaticfunctiononAuthPluginAutoCreate($user){...}
Attach hook:Inextension.json:
{"Hooks":{"AuthPluginAutoCreate":"MediaWiki\\Extension\\MyExtension\\Hooks::onAuthPluginAutoCreate"}}
Called from:File(s):specials/SpecialUserLogin.php
Interface:AuthPluginAutoCreateHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:AuthPluginAutoCreate extensions.


Details

[edit]
  • $user: User object created locally
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/AuthPluginAutoCreate&oldid=4150249"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp