Manual:Hooks/User::mailPasswordInternal

From MediaWiki.org
Jump to: navigation, search
User::mailPasswordInternal
Available from version 1.14.0
Before creation and mailing of a user's new temporary password.

*Define function:
function fnMyHook( $user, $ip, $u ) { ... }

*Attach hook:
$wgHooks['User::mailPasswordInternal'][] = 'MyExtensionHooks::someExample';
Called from: SpecialUserlogin.php

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


[edit] Details

  • $user: the user who sent the message out
  • $ip: IP of the user who sent the message out
  • $u: the account whose new password will be set
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox