Skip to content

Commit

Permalink
Fix oauth2 error handle not return immediately (go-gitea#32514)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4121f95)
  • Loading branch information
lunny authored and earl-warren committed Nov 17, 2024
1 parent 004fe29 commit 6ac04b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routers/web/auth/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,8 @@ func SignInOAuthCallback(ctx *context.Context) {
}
if err, ok := err.(*go_oauth2.RetrieveError); ok {
ctx.Flash.Error("OAuth2 RetrieveError: "+err.Error(), true)
ctx.Redirect(setting.AppSubURL + "/user/login")
return
}
ctx.ServerError("UserSignIn", err)
return
Expand Down

0 comments on commit 6ac04b8

Please sign in to comment.