From 30226b4793b3e98b0cb6a7c58a942819ddb82dc1 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 25 Apr 2019 22:38:51 +0800 Subject: [PATCH] fix missing return (#6751) (#6756) --- routers/user/oauth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/user/oauth.go b/routers/user/oauth.go index 326bd0bc55d..f69c0047ae5 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) }