summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-22 06:20:00 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-22 06:20:00 -0400
commit76cd448e7925997b60a54e8d9431ffd0826cc24e (patch)
tree3c99d9a07e579559ee0ec49bcb355ce893b40f5f /web.go
parent19104f156fd91b7d2cdc84b86dd27e6dcfa11416 (diff)
downloadgitea-76cd448e7925997b60a54e8d9431ffd0826cc24e.tar.gz
gitea-76cd448e7925997b60a54e8d9431ffd0826cc24e.zip
Add admin delete user
Diffstat (limited to 'web.go')
-rw-r--r--web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/web.go b/web.go
index bb316a6724..595b8f74ed 100644
--- a/web.go
+++ b/web.go
@@ -119,6 +119,7 @@ func runWeb(*cli.Context) {
m.Get("/admin/users", reqSignIn, adminReq, admin.Users)
m.Any("/admin/users/new", reqSignIn, adminReq, binding.BindIgnErr(auth.RegisterForm{}), admin.NewUser)
m.Any("/admin/users/:userid", reqSignIn, adminReq, binding.BindIgnErr(auth.AdminEditUserForm{}), admin.EditUser)
+ m.Any("/admin/users/:userid/delete", reqSignIn, adminReq, admin.DeleteUser)
m.Get("/admin/repos", reqSignIn, adminReq, admin.Repositories)
m.Get("/admin/config", reqSignIn, adminReq, admin.Config)