summaryrefslogtreecommitdiffstats
path: root/routers/user/oauth.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-04-25 19:30:38 +0800
committerGitHub <noreply@github.com>2019-04-25 19:30:38 +0800
commite8f4c7733a822eb6bb04909dbf70f2de679522b7 (patch)
tree8e568826683f1fa462b508478ef4ee9b271877ed /routers/user/oauth.go
parent65b3f513c3d9d9488475f03408f0ba628363a599 (diff)
downloadgitea-e8f4c7733a822eb6bb04909dbf70f2de679522b7.tar.gz
gitea-e8f4c7733a822eb6bb04909dbf70f2de679522b7.zip
fix missing return (#6751)
Diffstat (limited to 'routers/user/oauth.go')
-rw-r--r--routers/user/oauth.go1
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)
}