summaryrefslogtreecommitdiffstats
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-13 21:00:12 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-13 21:00:12 -0400
commitd2b53dd43b3bc9719985033bc92b76abb9515b4d (patch)
treef6c038f0b8c11e8a01d7cd26d6bbdb14144696b3 /routers/admin/admin.go
parent4b9b8024ba59b5b84d92dca650761b35ebf6408a (diff)
downloadgitea-d2b53dd43b3bc9719985033bc92b76abb9515b4d.tar.gz
gitea-d2b53dd43b3bc9719985033bc92b76abb9515b4d.zip
Add weibo oauth
Diffstat (limited to 'routers/admin/admin.go')
-rw-r--r--routers/admin/admin.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index 18a43ff817..d0f737e645 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -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