summaryrefslogtreecommitdiffstats
path: root/modules/auth
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 /modules/auth
parentd1a60e364383b877fd98b853d94b739cb171fe9c (diff)
downloadgitea-32dcaefafa6039e8fe27d263290e33ce5e5d3aa5.tar.gz
gitea-32dcaefafa6039e8fe27d263290e33ce5e5d3aa5.zip
fox #620
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/admin.go17
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 {