MediaWiki  master
MediaWiki\User\Hook\IsValidPasswordHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 12 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: