Browse Source

Do not pass along the raw error. Closes #2491

pull/2507/head
Gabe Kangas 3 years ago
parent
commit
8890b564e8
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      controllers/auth/indieauth/client.go

2
controllers/auth/indieauth/client.go

@ -58,7 +58,7 @@ func HandleRedirect(w http.ResponseWriter, r *http.Request) { @@ -58,7 +58,7 @@ func HandleRedirect(w http.ResponseWriter, r *http.Request) {
request, response, err := ia.HandleCallbackCode(code, state)
if err != nil {
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)
return
}

Loading…
Cancel
Save