1
0
Fork 0
forked from forgejo/forgejo

Add weibo oauth

This commit is contained in:
Unknown 2014-04-13 21:00:12 -04:00
parent 4b9b8024ba
commit d2b53dd43b
20 changed files with 198 additions and 21 deletions

View file

@ -153,6 +153,12 @@ func Config(ctx *middleware.Context) {
ctx.Data["Mailer"] = base.MailService
}
ctx.Data["OauthEnabled"] = false
if base.OauthService != nil {
ctx.Data["OauthEnabled"] = true
ctx.Data["Oauther"] = base.OauthService
}
ctx.Data["CacheAdapter"] = base.CacheAdapter
ctx.Data["CacheConfig"] = base.CacheConfig