Skip to content

Commit 5ae9bb4

Browse files
GiteaBotlunny
andauthored
Fix a bug missed return (#35655) (#35667)
Backport #35655 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent ae2e8c1 commit 5ae9bb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/auth/oauth2_provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ func handleAuthorizationCode(ctx *context.Context, form forms.AccessTokenForm, s
636636
ErrorCode: oauth2_provider.AccessTokenErrorCodeInvalidRequest,
637637
ErrorDescription: "cannot proceed your request",
638638
})
639+
return
639640
}
640641
resp, tokenErr := oauth2_provider.NewAccessTokenResponse(ctx, authorizationCode.Grant, serverKey, clientKey)
641642
if tokenErr != nil {

0 commit comments

Comments
 (0)