Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not display the raw OpenID error in the UI #5705

Merged
merged 4 commits into from
Jan 12, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update auth_openid.go
Place error log within the `err != nil` branch.
  • Loading branch information
zeripath committed Jan 12, 2019
commit 6b08894f01a9e29f1373fc1a194fea5f09ef02ec
2 changes: 1 addition & 1 deletion routers/user/auth_openid.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ func SignInOpenIDPost(ctx *context.Context, form auth.SignInOpenIDForm) {

redirectTo := setting.AppURL + "user/login/openid"
url, err := openid.RedirectURL(id, redirectTo, setting.AppURL)
log.Error(1, "Error in OpenID redirect URL: %s, %v", redirectTo, err.Error())
if err != nil {
log.Error(1, "Error in OpenID redirect URL: %s, %v", redirectTo, err.Error())
ctx.RenderWithErr(fmt.Sprintf("Unable to find OpenID provider in %s", redirectTo), tplSignInOpenID, &form)
return
}
Expand Down