mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	fix #687
This commit is contained in:
		@@ -143,9 +143,11 @@ func newMacaron() *macaron.Macaron {
 | 
				
			|||||||
	}))
 | 
						}))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// OAuth 2.
 | 
						// OAuth 2.
 | 
				
			||||||
 | 
						if setting.OauthService != nil {
 | 
				
			||||||
		for _, info := range setting.OauthService.OauthInfos {
 | 
							for _, info := range setting.OauthService.OauthInfos {
 | 
				
			||||||
			m.Use(oauth2.NewOAuth2Provider(info.Options, info.AuthUrl, info.TokenUrl))
 | 
								m.Use(oauth2.NewOAuth2Provider(info.Options, info.AuthUrl, info.TokenUrl))
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	m.Use(middleware.Contexter())
 | 
						m.Use(middleware.Contexter())
 | 
				
			||||||
	return m
 | 
						return m
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user