Browse Source

fix missing return (#6751)

for-closed-social
Lunny Xiao 5 years ago
committed by GitHub
parent
commit
e8f4c7733a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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) 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)
} }

Loading…
Cancel
Save