Skip to content

Kirby 6.0.0

$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
$email stringornull no default value
$password stringornull null
$long bool false

Return type

Kirby\Cms\User

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the password is missing
Kirby\Exception\PermissionException If the user has a second factor set up

Parent class

Kirby\Auth\Method\BasicAuthMethod