diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-17 14:53:41 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-17 14:53:41 -0500 |
commit | 32dcaefafa6039e8fe27d263290e33ce5e5d3aa5 (patch) | |
tree | 689cfa7791c40b3d25a801c7b7cc3bf07f23ed7f /modules/auth | |
parent | d1a60e364383b877fd98b853d94b739cb171fe9c (diff) | |
download | gitea-32dcaefafa6039e8fe27d263290e33ce5e5d3aa5.tar.gz gitea-32dcaefafa6039e8fe27d263290e33ce5e5d3aa5.zip |
fox #620
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/admin.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go index 60ea3a3cc2..6fec6ce73e 100644 --- a/modules/auth/admin.go +++ b/modules/auth/admin.go @@ -11,14 +11,15 @@ import ( ) type AdminEditUserForm struct { - Email string `form:"email" binding:"Required;Email;MaxSize(50)"` - Passwd string `form:"password"` - Website string `form:"website" binding:"MaxSize(50)"` - Location string `form:"location" binding:"MaxSize(50)"` - Avatar string `form:"avatar" binding:"Required;Email;MaxSize(50)"` - Active bool `form:"active"` - Admin bool `form:"admin"` - LoginType int `form:"login_type"` + Email string `form:"email" binding:"Required;Email;MaxSize(50)"` + Passwd string `form:"password"` + Website string `form:"website" binding:"MaxSize(50)"` + Location string `form:"location" binding:"MaxSize(50)"` + Avatar string `form:"avatar" binding:"Required;Email;MaxSize(50)"` + Active bool `form:"active"` + Admin bool `form:"admin"` + AllowGitHook bool `form:"allow_git_hook"` + LoginType int `form:"login_type"` } func (f *AdminEditUserForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |