diff options
author | 无闻 <u@gogs.io> | 2015-02-01 16:56:34 -0500 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2015-02-01 16:56:34 -0500 |
commit | cd6376f0930d6d0848936756675ffa4c96f6cea8 (patch) | |
tree | ef37bf1f30c88717d95838a1cdddce7eb54d71fc /routers | |
parent | d4fc8880ebc1b05e19731f377c7b4d7dfc95ed56 (diff) | |
parent | 6643647687aa2ba8a41f8f95d404407ff6106d8c (diff) | |
download | gitea-cd6376f0930d6d0848936756675ffa4c96f6cea8.tar.gz gitea-cd6376f0930d6d0848936756675ffa4c96f6cea8.zip |
Merge pull request #818 from fzerorubigd/master
add a function to rewrite all public keys on admin request
Diffstat (limited to 'routers')
-rw-r--r-- | routers/admin/admin.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go index 563a9cdc41..ea50d5c4cb 100644 --- a/routers/admin/admin.go +++ b/routers/admin/admin.go @@ -118,6 +118,7 @@ const ( CLEAN_INACTIVATE_USER CLEAN_REPO_ARCHIVES GIT_GC_REPOS + SYNC_SSH_AUTHORIZED_KEY ) func Dashboard(ctx *middleware.Context) { @@ -144,6 +145,9 @@ func Dashboard(ctx *middleware.Context) { case GIT_GC_REPOS: success = ctx.Tr("admin.dashboard.git_gc_repos_success") err = models.GitGcRepos() + case SYNC_SSH_AUTHORIZED_KEY: + success = ctx.Tr("admin.dashboard.resync_all_sshkeys_success") + err = models.RewriteAllPublicKeys() } if err != nil { |