mirror of
https://github.com/go-gitea/gitea
synced 2024-12-28 09:34:39 +01:00
Fix oauth2 error handle not return immediately (#32514)
This commit is contained in:
parent
21f7db2124
commit
4121f952d1
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue