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
  • Loading branch information
lunny authored Nov 15, 2024
1 parent 21f7db2 commit 4121f95
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 @@ -122,6 +122,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 4121f95

Please sign in to comment.