mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-07-23 21:21:26 +02:00
fix: honor webauthn user verification setting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user