Skip to content

Kirby 5.0.4

Challenge::verify()

Verifies the provided code against the created one; default implementation that checks the code that was returned from the create() method

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

Parameters

Name Type Default Description
$userrequired Kirby\Cms\User no default value User to check the code for
$coderequired string no default value Code to verify

Return type

bool

Parent class

Kirby\Cms\Auth\Challenge