diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-01 06:12:14 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-01 06:12:14 -0400 |
commit | 669552e255fb98021b779918394c65792fe6f1d2 (patch) | |
tree | 83749a52ede967df34285a5e9f79310abed473c0 /modules/auth/user_form.go | |
parent | 17d2675dd263ba70a4d5370070d879776469144a (diff) | |
download | gitea-669552e255fb98021b779918394c65792fe6f1d2.tar.gz gitea-669552e255fb98021b779918394c65792fe6f1d2.zip |
Fix #340
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r-- | modules/auth/user_form.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index 30080e859b..df713b570f 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -24,7 +24,7 @@ type InstallForm struct { Domain string `form:"domain"` AppUrl string `form:"app_url"` AdminName string `form:"admin_name" binding:"Required;AlphaDashDot;MaxSize(30)"` - AdminPasswd string `form:"admin_pwd" binding:"Required;MinSize(6);MaxSize(30)"` + AdminPasswd string `form:"admin_pwd" binding:"Required;MinSize(6);MaxSize(255)"` AdminEmail string `form:"admin_email" binding:"Required;Email;MaxSize(50)"` SmtpHost string `form:"smtp_host"` SmtpEmail string `form:"mailer_user"` @@ -47,7 +47,7 @@ func (f *InstallForm) Validate(ctx *macaron.Context, errs *binding.Errors, l i18 type RegisterForm struct { UserName string `form:"uname" binding:"Required;AlphaDashDot;MaxSize(35)"` Email string `form:"email" binding:"Required;Email;MaxSize(50)"` - Password string `form:"password" binding:"Required;MinSize(6);MaxSize(30)"` + Password string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"` Retype string `form:"retype"` LoginType string `form:"logintype"` LoginName string `form:"loginname"` @@ -59,7 +59,7 @@ func (f *RegisterForm) Validate(ctx *macaron.Context, errs *binding.Errors, l i1 type SignInForm struct { UserName string `form:"uname" binding:"Required;MaxSize(35)"` - Password string `form:"password" binding:"Required;MinSize(6);MaxSize(30)"` + Password string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"` Remember bool `form:"remember"` } @@ -88,8 +88,8 @@ func (f *UpdateProfileForm) Validate(ctx *macaron.Context, errs *binding.Errors, } type ChangePasswordForm struct { - OldPassword string `form:"old_password" binding:"Required;MinSize(6);MaxSize(30)"` - Password string `form:"password" binding:"Required;MinSize(6);MaxSize(30)"` + OldPassword string `form:"old_password" binding:"Required;MinSize(6);MaxSize(255)"` + Password string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"` Retype string `form:"retype"` } |