Sfoglia il codice sorgente

fix(webauthn): correct arg in debug log

Tianzhi Jin 1 anno fa
parent
commit
81ec32a8b6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      internal/ui/webauthn.go

+ 1 - 1
internal/ui/webauthn.go

@@ -209,7 +209,7 @@ func (h *handler) finishLogin(w http.ResponseWriter, r *http.Request) {
 
 	slog.Debug("WebAuthn: parsed response flags",
 		slog.Bool("user_present", parsedResponse.Response.AuthenticatorData.Flags.HasUserPresent()),
-		slog.Bool("user_verified", parsedResponse.Response.AuthenticatorData.Flags.HasUserPresent()),
+		slog.Bool("user_verified", parsedResponse.Response.AuthenticatorData.Flags.HasUserVerified()),
 		slog.Bool("has_attested_credential_data", parsedResponse.Response.AuthenticatorData.Flags.HasAttestedCredentialData()),
 		slog.Bool("has_backup_eligible", parsedResponse.Response.AuthenticatorData.Flags.HasBackupEligible()),
 		slog.Bool("has_backup_state", parsedResponse.Response.AuthenticatorData.Flags.HasBackupState()),