Manual:Hooks/isValidPassword
From MediaWiki.org
| isValidPassword | |
|---|---|
| Available from version 1.11.0 Override the result of User::isValidPassword() |
|
*Define function: |
function fnMyHook( $password, $result, $user ) { ... }
|
*Attach hook: |
$wgHooks['isValidPassword'][] = 'MyExtensionHooks::someExample'; |
| Called from: | User.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:isValidPassword extensions.
[edit] Details
$password: Desired password.
&$result: Set this and return false to override the internal checks.
$user: User the password is being validated for.
