mirror of
https://github.com/flarum/core.git
synced 2025-07-18 23:31:17 +02:00
clarify callable arguments for password checker (#2812)
This commit is contained in:
@@ -23,6 +23,7 @@ class Auth implements ExtenderInterface
|
|||||||
*
|
*
|
||||||
* @param string $identifier: Unique identifier for password checker.
|
* @param string $identifier: Unique identifier for password checker.
|
||||||
* @param callable|string $callback: A closure or invokable class that contains the logic of the password checker.
|
* @param callable|string $callback: A closure or invokable class that contains the logic of the password checker.
|
||||||
|
* Arguments are a User $object and string $password.
|
||||||
* It should return:
|
* It should return:
|
||||||
* - `true` if the given password is valid.
|
* - `true` if the given password is valid.
|
||||||
* - `null` (or not return anything) if the given password is invalid, or this checker does not apply.
|
* - `null` (or not return anything) if the given password is invalid, or this checker does not apply.
|
||||||
|
Reference in New Issue
Block a user