EmailChallenge::isAvailable()
Checks whether the challenge is available for the passed user and purpose
Parameters
Name | Type | Default | Description |
---|---|---|---|
$user * | Kirby\Cms\User |
– | User the code will be generated for |
$mode * | string |
– | Purpose of the code ('login', 'reset' or '2fa') |
Return type
bool