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: |
public static function onUser::mailPasswordInternal( $user, $ip, $u ) { ... }
|
Attach hook: |
$wgHooks['User::mailPasswordInternal'][] = 'MyExtensionHooks::onUser::mailPasswordInternal'; |
| 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.
Details [edit]
- $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
