$user->updateSecret()
Writes a secret without guards and hooks and keeps the password timestamp, for state that must not end the user's sessions (e.g. the signature counter of a passkey after a login)
$user->updateSecret(string $key, mixed $secret): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | string |
no default value |
| $secretrequired | mixed |
no default value |
Return type
bool
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\LogicException |
If the key is the password |