UserRules::changeTotp()
Validates if the TOTP can be changed
UserRules::changeTotp(Kirby\Cms\User $user, ?string $secret): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $user * | Kirby\Cms\User |
– |
| $secret * | string|null |
– |
Return type
bool
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\PermissionException |
If the user is not allowed to change the password |