mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 14:17:53 +01:00
fix #687
This commit is contained in:
parent
5c866fc737
commit
82da024a4d
@ -143,8 +143,10 @@ func newMacaron() *macaron.Macaron {
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
// OAuth 2.
|
// OAuth 2.
|
||||||
for _, info := range setting.OauthService.OauthInfos {
|
if setting.OauthService != nil {
|
||||||
m.Use(oauth2.NewOAuth2Provider(info.Options, info.AuthUrl, info.TokenUrl))
|
for _, info := range setting.OauthService.OauthInfos {
|
||||||
|
m.Use(oauth2.NewOAuth2Provider(info.Options, info.AuthUrl, info.TokenUrl))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
m.Use(middleware.Contexter())
|
m.Use(middleware.Contexter())
|
||||||
return m
|
return m
|
||||||
|
Loading…
Reference in New Issue
Block a user