diff options
author | Unknwon <u@gogs.io> | 2015-03-20 01:58:28 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-03-20 01:58:28 -0400 |
commit | 62e436e6b7a41bac2e17a26f08649c144cef5b57 (patch) | |
tree | 379be1b74989d5be2aacc68753b0d3d12597d400 /modules/auth/admin.go | |
parent | 4b9fb43a708d0aaaf710a060f7b2dd0b7ad959d0 (diff) | |
parent | e312634286e68d8fac4d20adb729661f8a444b2a (diff) | |
download | gitea-62e436e6b7a41bac2e17a26f08649c144cef5b57.tar.gz gitea-62e436e6b7a41bac2e17a26f08649c144cef5b57.zip |
Merge branch 'develop' of github.com:gogits/gogs into release/0.6.1
Diffstat (limited to 'modules/auth/admin.go')
-rw-r--r-- | modules/auth/admin.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/auth/admin.go b/modules/auth/admin.go index 6fec6ce73e..e6cc82cd34 100644 --- a/modules/auth/admin.go +++ b/modules/auth/admin.go @@ -11,15 +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"` - AllowGitHook bool `form:"allow_git_hook"` - LoginType int `form:"login_type"` + Email string `binding:"Required;Email;MaxSize(50)"` + Password string `binding:"OmitEmpty;MinSize(6);MaxSize(255)"` + Website string `binding:"MaxSize(50)"` + Location string `binding:"MaxSize(50)"` + Avatar string `binding:"Required;Email;MaxSize(50)"` + Active bool + Admin bool + AllowGitHook bool + LoginType int } func (f *AdminEditUserForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors { |