fix: honor webauthn user verification setting

This commit is contained in:
Elias Schneider
2026-07-21 14:59:51 +02:00
parent 2cfbcb4b67
commit 0983e91169

View File

@@ -140,10 +140,11 @@ func (s *Service) VerifyRegistration(ctx context.Context, sessionID string, user
}
session := gowebauthn.SessionData{
Challenge: storedSession.Challenge,
Expires: storedSession.ExpiresAt.ToTime(),
CredParams: storedSession.CredentialParams,
UserID: []byte(userID),
Challenge: storedSession.Challenge,
Expires: storedSession.ExpiresAt.ToTime(),
CredParams: storedSession.CredentialParams,
UserVerification: protocol.UserVerificationRequirement(storedSession.UserVerification),
UserID: []byte(userID),
}
var user model.User