Manual:Hooks/UserLoginComplete

Details

 * $user: the user object that was created on login
 * $inject_html: From 1.13, any HTML to inject after the login success message.
 * $direct: (bool) Since 1.28. The hook is called directly after a successful login. This will only happen once per login. A UserLoginComplete call with direct=false can happen when the user visits the login page while already logged in.

This hook won't be called for API logins and is only intended for display purposes. Use the hook or an AuthManager provider's   method for running backend logic on login.