Manual:Hooks/UserLoginMailPassword

UserLoginMailPassword
Available from version 1.16.0
Removed in version 1.18.0
Block users from emailing passwords
Define function:
public static function onUserLoginMailPassword( $name, &$error ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"UserLoginMailPassword": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserLoginMailPassword"
	}
}
Called from: File(s): specials/SpecialUserLogin.php
Interface: UserLoginMailPasswordHook.php

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


Details edit

  • $name: the username to email the password of.
  • &$error: out-param - the error message to return.