summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-21 03:27:59 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-21 03:27:59 -0400
commitc1576b4c400376f22ec25012a6ca66e9c5539ee4 (patch)
treeb8e682560055e8e91448d701e798edc3450a86c4 /web.go
parent5373a3093eaf9bc9ced7a6b3335ccf1b17fd343e (diff)
downloadgitea-c1576b4c400376f22ec25012a6ca66e9c5539ee4.tar.gz
gitea-c1576b4c400376f22ec25012a6ca66e9c5539ee4.zip
Add admin add 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 6fe838aa78..d6d78afa5d 100644
--- a/web.go
+++ b/web.go
@@ -117,6 +117,7 @@ func runWeb(*cli.Context) {
adminReq := middleware.AdminRequire()
m.Get("/admin", reqSignIn, adminReq, admin.Dashboard)
m.Get("/admin/users", reqSignIn, adminReq, admin.Users)
+ m.Any("/admin/users/new", reqSignIn, adminReq, binding.BindIgnErr(auth.RegisterForm{}), admin.NewUser)
m.Get("/admin/repos", reqSignIn, adminReq, admin.Repositories)
m.Get("/admin/config", reqSignIn, adminReq, admin.Config)