Skip to content

Commit

Permalink
fix: don't log code
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed Jun 26, 2024
1 parent e6ed554 commit 7f21ad3
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 @@ -289,7 +289,7 @@ func (a *API) VerifyFactor(w http.ResponseWriter, r *http.Request) error {
return err
}
}
return unprocessableEntityError(ErrorCodeMFAVerificationFailed, "Invalid TOTP code entered: %v", params.Code).WithInternalError(verr)
return unprocessableEntityError(ErrorCodeMFAVerificationFailed, "Invalid TOTP code entered").WithInternalError(verr)
}

var token *AccessTokenResponse
Expand Down

0 comments on commit 7f21ad3

Please sign in to comment.