Manual:Hooks/UserLoginComplete

From MediaWiki.org
Jump to: navigation, search
UserLoginComplete
Available from version 1.4.0
Occurs after a user has successfully logged in

Define function:
public static function onUserLoginComplete( User &$user, &$inject_html ) { ... }

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

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


[edit] Details

  • $user: the user object that was created on login
  • $inject_html: From 1.13, any HTML to inject after the login success message.
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox