$passwordMethod->authenticate()
$passwordMethod->authenticate(string|null $email, string|null $password = null, bool $long = false): User|Status
Parameters
| Name | Type | Default |
|---|---|---|
stringornull |
no default value | |
| $password | stringornull |
null
|
| $long | bool |
false
|
Return types
Kirby\Cms\UserorKirby\Auth\Status
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
If the email or password is missing |