Skip to content

Kirby 6.0.0

$user->changeTotp()

Changes the user's TOTP secret

Deprecated in 6.0.0
Use self::changeSecret('totp') instead
$user->changeTotp(string|null $secret): User

Parameters

Name Type Default
$secret stringornull no default value

Return type

Kirby\Cms\User

This method does not modify the existing $user object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\User