diff options
author | Lunny Xiao | 2019-04-25 22:38:51 +0800 |
---|---|---|
committer | techknowlogick | 2019-04-25 10:38:51 -0400 |
commit | 30226b4793b3e98b0cb6a7c58a942819ddb82dc1 (patch) | |
tree | 3cfd86f18a96fe8bf5334e29ac257ae6d65f369c | |
parent | aecd9231bafc6b740e4026c2af5abffcd0fd5acb (diff) |
fix missing return (#6751) (#6756)
-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 326bd0bc5..f69c0047a 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) } |