fix missing return (#6751) (#6756)

This commit is contained in:
Lunny Xiao 2019-04-25 22:38:51 +08:00 committed by techknowlogick
parent aecd9231ba
commit 30226b4793
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ func GrantApplicationOAuth(ctx *context.Context, form auth.GrantApplicationForm)
redirect, err := code.GenerateRedirectURI(form.State) redirect, err := code.GenerateRedirectURI(form.State)
if err != nil { if err != nil {
handleServerError(ctx, form.State, form.RedirectURI) handleServerError(ctx, form.State, form.RedirectURI)
return
} }
ctx.Redirect(redirect.String(), 302) ctx.Redirect(redirect.String(), 302)
} }