Skip to content

Kirby 5.1.2

$auth->track()

Tracks a login

$auth->track(string|null $email, bool $triggerHook = true): bool

Parameters

Name Type Default Description
$email stringornull no default value
$triggerHook bool true If false, no user.login:failed hook is triggered

Return type

bool

This method modifies the existing $auth object it is applied to and returns it again.

Parent class

Kirby\Cms\Auth