summaryrefslogtreecommitdiffstats
path: root/routers/admin/users.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-17 14:53:41 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-17 14:53:41 -0500
commit32dcaefafa6039e8fe27d263290e33ce5e5d3aa5 (patch)
tree689cfa7791c40b3d25a801c7b7cc3bf07f23ed7f /routers/admin/users.go
parentd1a60e364383b877fd98b853d94b739cb171fe9c (diff)
downloadgitea-32dcaefafa6039e8fe27d263290e33ce5e5d3aa5.tar.gz
gitea-32dcaefafa6039e8fe27d263290e33ce5e5d3aa5.zip
fox #620
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r--routers/admin/users.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go
index ac33fd62b1..0a1056f3bd 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -174,7 +174,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) {
return
}
- // NOTE: need password length check?
+ // FIXME: need password length check
if len(form.Passwd) > 0 {
u.Passwd = form.Passwd
u.Salt = models.GetUserSalt()
@@ -191,6 +191,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) {
u.AvatarEmail = form.Avatar
u.IsActive = form.Active
u.IsAdmin = form.Admin
+ u.AllowGitHook = form.AllowGitHook
if err := models.UpdateUser(u); err != nil {
ctx.Handle(500, "UpdateUser", err)
return