Browse Source

Fix a bug missed return (#35655)

pull/33908/merge
Lunny Xiao 2 months ago committed by GitHub
parent
commit
16fc3323b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      routers/web/auth/oauth2_provider.go

1
routers/web/auth/oauth2_provider.go

@ -636,6 +636,7 @@ func handleAuthorizationCode(ctx *context.Context, form forms.AccessTokenForm, s @@ -636,6 +636,7 @@ func handleAuthorizationCode(ctx *context.Context, form forms.AccessTokenForm, s
ErrorCode: oauth2_provider.AccessTokenErrorCodeInvalidRequest,
ErrorDescription: "cannot proceed your request",
})
return
}
resp, tokenErr := oauth2_provider.NewAccessTokenResponse(ctx, authorizationCode.Grant, serverKey, clientKey)
if tokenErr != nil {

Loading…
Cancel
Save