Skip to content

Commit

Permalink
fix return message
Browse files Browse the repository at this point in the history
  • Loading branch information
zahra.keshtkar committed May 25, 2024
1 parent d7b3962 commit 0254b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webauthn/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (webauthn *WebAuthn) validateLogin(user User, session SessionData, parsedRe
loginCredential.Authenticator.UpdateCounter(parsedResponse.Response.AuthenticatorData.Counter)
// Check if the BackupEligible flag has changed.
if loginCredential.Flags.BackupEligible != parsedResponse.Response.AuthenticatorData.Flags.HasBackupEligible() {
return nil, protocol.ErrBadRequest.WithDetails("BackupEligible flag should not change")
return nil, protocol.ErrBadRequest.WithDetails("BackupEligible flag inconsistency detected during login validation")
}

// Update flags from response data.
Expand Down

0 comments on commit 0254b23

Please sign in to comment.