0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-10-19 19:52:08 +02:00

Fix a bug missed return (#35655)

This commit is contained in:
Lunny Xiao 2025-10-14 20:12:07 -07:00 committed by GitHub
parent 731d803d19
commit 16fc3323b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {