mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-23 06:38:34 +01:00
Fix the useWebauthnOnly preference not being saved at webauthn reset
This commit is contained in:
parent
6fe00585e5
commit
3b156df8a2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user