Manual:Hooks/User::mailPasswordInternal
From MediaWiki.org
| 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
