Skip to content

Commit b854930

Browse files
GiteaBotlunny
andauthored
Fix a bug missed return (go-gitea#35655) (go-gitea#35671)
Backport go-gitea#35655 by @lunny Co-authored-by: Lunny Xiao <[email protected]>
1 parent 935f5e0 commit b854930

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
@@ -639,6 +639,7 @@ func handleAuthorizationCode(ctx *context.Context, form forms.AccessTokenForm, s
639639
ErrorCode: oauth2_provider.AccessTokenErrorCodeInvalidRequest,
640640
ErrorDescription: "cannot proceed your request",
641641
})
642+
return
642643
}
643644
resp, tokenErr := oauth2_provider.NewAccessTokenResponse(ctx, authorizationCode.Grant, serverKey, clientKey)
644645
if tokenErr != nil {

0 commit comments

Comments
 (0)