Skip to content

Kirby 6.0.0

$methods->authenticate()

Authenticates via the specific auth method

$methods->authenticate(string $type, string|null $email, string|null $password = null, bool $long = false): User|Status

Parameters

Name Type Default
$typerequired string no default value
$email stringornull no default value
$password stringornull null
$long bool false

Return types

Kirby\Cms\UserorKirby\Auth\Status

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If auth method type does not exists or is not available

Parent class

Kirby\Auth\Methods