Skip to content

Kirby 4.2.0

TotpChallenge::verify()

Verifies the provided code against the created one

TotpChallenge::verify(Kirby\Cms\User $user, string $code): bool

Parameters

Name Type Default Description
$user * Kirby\Cms\User User to check the code for
$code * string Code to verify

Return type

bool

Parent class

Kirby\Cms\Auth\TotpChallenge