Skip to content

Kirby 6.0.0

$user->changeSecret()

Stores secrets for the user

$user->changeSecret(string $secret, mixed $content): User

Parameters

Name Type Default
$secretrequired string no default value
$contentrequired mixed 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