0

Do not pass along the raw error. Closes #2491

This commit is contained in:
Gabe Kangas 2022-12-24 20:34:39 -08:00
parent 52d6226176
commit 8890b564e8
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

@ -58,7 +58,7 @@ func HandleRedirect(w http.ResponseWriter, r *http.Request) {
request, response, err := ia.HandleCallbackCode(code, state) request, response, err := ia.HandleCallbackCode(code, state)
if err != nil { if err != nil {
log.Debugln(err) log.Debugln(err)
msg := fmt.Sprintf("Unable to complete authentication. <a href=\"/\">Go back.</a><hr/> %s", err.Error()) msg := `Unable to complete authentication. <a href="/">Go back.</a><hr/>`
_ = controllers.WriteString(w, msg, http.StatusBadRequest) _ = controllers.WriteString(w, msg, http.StatusBadRequest)
return return
} }