Skip to content

Commit

Permalink
fix: update ip mismatch error message
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 authored Nov 28, 2024
1 parent e358da5 commit 9b0841d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/mfa.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ func (a *API) validateChallenge(r *http.Request, db *storage.Connection, factor
}

if challenge.VerifiedAt != nil || challenge.IPAddress != currentIP {
return nil, unprocessableEntityError(ErrorCodeMFAIPAddressMismatch, "Challenge and verify IP addresses mismatch. Try enrollment again.")
return nil, unprocessableEntityError(ErrorCodeMFAIPAddressMismatch, "Challenge and verify IP addresses mismatch.")
}

if challenge.HasExpired(config.MFA.ChallengeExpiryDuration) {
Expand Down

0 comments on commit 9b0841d

Please sign in to comment.