Преглед изворни кода

fix(webauthn): correct arg in debug log

Tianzhi Jin пре 1 година
родитељ
комит
81ec32a8b6
1 измењених фајлова са 1 додато и 1 уклоњено
  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()),