Skip to content

Commit eca4b42

Browse files
lunnyGiteaBot
authored andcommitted
Fix a bug missed return (go-gitea#35655)
1 parent 08c6ea6 commit eca4b42

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)