diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-21 03:27:59 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-21 03:27:59 -0400 |
commit | c1576b4c400376f22ec25012a6ca66e9c5539ee4 (patch) | |
tree | b8e682560055e8e91448d701e798edc3450a86c4 /web.go | |
parent | 5373a3093eaf9bc9ced7a6b3335ccf1b17fd343e (diff) | |
download | gitea-c1576b4c400376f22ec25012a6ca66e9c5539ee4.tar.gz gitea-c1576b4c400376f22ec25012a6ca66e9c5539ee4.zip |
Add admin add user
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |