Skip to content

Commit 30226b4

Browse files
lunnytechknowlogick
authored andcommitted
fix missing return (#6751) (#6756)
1 parent aecd923 commit 30226b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/user/oauth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ func GrantApplicationOAuth(ctx *context.Context, form auth.GrantApplicationForm)
302302
redirect, err := code.GenerateRedirectURI(form.State)
303303
if err != nil {
304304
handleServerError(ctx, form.State, form.RedirectURI)
305+
return
305306
}
306307
ctx.Redirect(redirect.String(), 302)
307308
}

0 commit comments

Comments
 (0)