Skip to content

Kirby 5.0.4

UserRules::changeTotp()

Validates if the TOTP can be changed

UserRules::changeTotp(Kirby\Cms\User $user, string|null $secret): void

Parameters

Name Type Default
$userrequired Kirby\Cms\User no default value
$secret stringornull no default value

Exceptions

Type Description
Kirby\Exception\PermissionException If the user is not allowed to change the password

Parent class

Kirby\Cms\UserRules