mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Fix a bug missed return (#35655)
This commit is contained in:
		@@ -636,6 +636,7 @@ func handleAuthorizationCode(ctx *context.Context, form forms.AccessTokenForm, s
 | 
				
			|||||||
			ErrorCode:        oauth2_provider.AccessTokenErrorCodeInvalidRequest,
 | 
								ErrorCode:        oauth2_provider.AccessTokenErrorCodeInvalidRequest,
 | 
				
			||||||
			ErrorDescription: "cannot proceed your request",
 | 
								ErrorDescription: "cannot proceed your request",
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	resp, tokenErr := oauth2_provider.NewAccessTokenResponse(ctx, authorizationCode.Grant, serverKey, clientKey)
 | 
						resp, tokenErr := oauth2_provider.NewAccessTokenResponse(ctx, authorizationCode.Grant, serverKey, clientKey)
 | 
				
			||||||
	if tokenErr != nil {
 | 
						if tokenErr != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user