Skip to content

Kirby 4.5.0

$user->changeTotp()

Changes the user's TOTP secret

$user->changeTotp(?string $secret): Kirby\Cms\User

Parameters

Name Type Default
$secret * string|null

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