$userValidators->validateTotp()
Validates that a TOTP secret is valid Base32 and has the correct length
$userValidators->validateTotp(string|null $secret = null): void
Parameters
| Name | Type | Default |
|---|---|---|
| $secret | stringornull |
null
|
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
If the secret is not valid Base32, too short or too long |