Browse Source

fix missing return (#6751)

tags/v1.9.0-rc1
Lunny Xiao GitHub 7 years ago
parent
commit
4244aeaecb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/user/oauth.go

+ 1
- 0
routers/user/oauth.go 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)
}


Loading…
Cancel
Save