summaryrefslogtreecommitdiffstats
path: root/modules/auth/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/admin.go')
-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 {