Replace the useWebauthnAsDefault option by a client side form toggle

This commit is contained in:
Bubka
2023-03-15 14:44:51 +01:00
parent f359a1ade3
commit 4d8180a8c1
10 changed files with 30 additions and 24 deletions

View File

@ -58,7 +58,6 @@ class WebAuthnManageController extends Controller
// no more registered device exists.
// See #110
if (blank($user->webAuthnCredentials()->WhereEnabled()->get())) {
Settings::delete('useWebauthnAsDefault');
Settings::delete('useWebauthnOnly');
Log::notice('No Webauthn credential enabled, Webauthn settings reset to default');
}