$user->changeTotp()
Changes the user's TOTP secret
Parameters
Name | Type | Default |
---|---|---|
$secret * | string |null |
– |
Return type
This method does not modify the existing $user
object but returns a new object with the changes applied. Learn more →