$basicAuthMethod->authenticate()
Basic auth authenticates on every request, so $long isn't relevant here
$basicAuthMethod->authenticate(string|null $email, string|null $password = null, bool $long = false): User
Parameters
| Name | Type | Default |
|---|---|---|
stringornull |
no default value | |
| $password | stringornull |
null
|
| $long | bool |
false
|
Return type
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
If the password is missing |
Kirby\Exception\PermissionException |
If the user has a second factor set up |