aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user')
-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)
}