Skip to content

Commit 0de0dc0

Browse files
committed
Fix a bug missed return
1 parent 22b92e3 commit 0de0dc0

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)