1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 17:44:27 +00:00

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

View File

@ -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)
}