Manual:Hooks/UserLoginMailPassword

From MediaWiki.org
Jump to: navigation, search
UserLoginMailPassword
Available from version 1.16.0
Removed in version 1.18.0
Block users from emailing passwords

*Define function:
function fnMyHook( $name, &$error ) { ... }

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

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


[edit] Details

  • $name: the username to email the password of.
  • &$error: out-param - the error message to return.
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox