diff options
author | Unknwon <u@gogs.io> | 2015-09-17 16:11:44 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-17 16:11:44 -0400 |
commit | 3fb1b6a608625067a76ba90f9855d48c4d6555bd (patch) | |
tree | 5cb663bd07a58bf830b01483465edebf938000ff /routers/admin | |
parent | 562e47f31ced80adc6ffa629e2d8459465c369e9 (diff) | |
download | gitea-3fb1b6a608625067a76ba90f9855d48c4d6555bd.tar.gz gitea-3fb1b6a608625067a76ba90f9855d48c4d6555bd.zip |
drop oauth2 feature support
Diffstat (limited to 'routers/admin')
-rw-r--r-- | routers/admin/admin.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go index 02449767e2..54d1a1450f 100644 --- a/routers/admin/admin.go +++ b/routers/admin/admin.go @@ -114,8 +114,7 @@ func updateSystemStatus() { type AdminOperation int const ( - CLEAN_UNBIND_OAUTH AdminOperation = iota + 1 - CLEAN_INACTIVATE_USER + CLEAN_INACTIVATE_USER AdminOperation = iota + 1 CLEAN_REPO_ARCHIVES GIT_GC_REPOS SYNC_SSH_AUTHORIZED_KEY @@ -134,9 +133,6 @@ func Dashboard(ctx *middleware.Context) { var success string switch AdminOperation(op) { - case CLEAN_UNBIND_OAUTH: - success = ctx.Tr("admin.dashboard.clean_unbind_oauth_success") - err = models.CleanUnbindOauth() case CLEAN_INACTIVATE_USER: success = ctx.Tr("admin.dashboard.delete_inactivate_accounts_success") err = models.DeleteInactivateUsers() @@ -197,12 +193,6 @@ func Config(ctx *middleware.Context) { ctx.Data["Mailer"] = setting.MailService } - ctx.Data["OauthEnabled"] = false - if setting.OauthService != nil { - ctx.Data["OauthEnabled"] = true - ctx.Data["Oauther"] = setting.OauthService - } - ctx.Data["CacheAdapter"] = setting.CacheAdapter ctx.Data["CacheInternal"] = setting.CacheInternal ctx.Data["CacheConn"] = setting.CacheConn |