diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-04-25 19:30:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 19:30:38 +0800 |
commit | e8f4c7733a822eb6bb04909dbf70f2de679522b7 (patch) | |
tree | 8e568826683f1fa462b508478ef4ee9b271877ed /routers/user | |
parent | 65b3f513c3d9d9488475f03408f0ba628363a599 (diff) | |
download | gitea-e8f4c7733a822eb6bb04909dbf70f2de679522b7.tar.gz gitea-e8f4c7733a822eb6bb04909dbf70f2de679522b7.zip |
fix missing return (#6751)
Diffstat (limited to 'routers/user')
-rw-r--r-- | routers/user/oauth.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/user/oauth.go b/routers/user/oauth.go index 326bd0bc55..f69c0047ae 100644 --- a/routers/user/oauth.go +++ b/routers/user/oauth.go @@ -302,6 +302,7 @@ func GrantApplicationOAuth(ctx *context.Context, form auth.GrantApplicationForm) redirect, err := code.GenerateRedirectURI(form.State) if err != nil { handleServerError(ctx, form.State, form.RedirectURI) + return } ctx.Redirect(redirect.String(), 302) } |