MediaWiki  master
MediaWiki\User\Hook\IsValidPasswordHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\User\Hook\IsValidPasswordHook:

Public Member Functions

 onIsValidPassword ( $password, &$result, $user)
 Use this hook to override the result of User::isValidPassword() More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "isValidPassword" to register handlers implementing this interface.

Stable to implement

Definition at line 15 of file IsValidPasswordHook.php.

Member Function Documentation

◆ onIsValidPassword()

MediaWiki\User\Hook\IsValidPasswordHook::onIsValidPassword (   $password,
$result,
  $user 
)

Use this hook to override the result of User::isValidPassword()

Since
1.35
Parameters
string$passwordThe password entered by the user
bool | string | MessageSpecifier&$resultSet this and return false to override the internal checks
User$userUser the password is being validated for
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: