Fix the useWebauthnOnly preference not being saved at webauthn reset

This commit is contained in:
Bubka 2024-01-26 18:20:51 +01:00
parent 6fe00585e5
commit 3b156df8a2

View File

@ -50,7 +50,7 @@ function ($user) use ($request) {
if ($this->shouldRevokeAllCredentials($request)) {
$user->flushCredentials();
}
$user->preferences['useWebauthnOnly'] = false;
$user['preferences->useWebauthnOnly'] = false;
$user->save();
Log::notice(sprintf('Legacy login restored for user ID #%s', $user->id));
} else {