Skip to content

Kirby 5.0.4

$totp->verify()

Securely checks the provided TOTP code against the current, the direct previous and following codes

$totp->verify(string $totp): bool

Parameters

Name Type Default
$totprequired string no default value

Return type

bool

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

Parent class

Kirby\Toolkit\Totp