$user->changeTotp()
Changes the user's TOTP secret
$user->changeTotp(string|null $secret): Kirby\Cms\User
Parameters
| Name | Type | Default |
|---|---|---|
| $secret | stringornull |
no default value |
Return type
This method does not modify the existing $user object but returns a new object with the changes applied. Learn more →