Skip to content

Kirby 4.4.1

EmailChallenge::isAvailable()

Checks whether the challenge is available for the passed user and purpose

EmailChallenge::isAvailable(Kirby\Cms\User $user, string $mode): bool

Parameters

Name Type Default Description
$user * Kirby\Cms\User User the code will be generated for
$mode * string Purpose of the code

Return type

bool

Parent class

Kirby\Cms\Auth\EmailChallenge