summaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-18 02:30:33 +0800
committerUnknwon <u@gogs.io>2015-08-18 02:30:33 +0800
commit71fd10dd37af16ce540ae151b51faffbc3ef2d84 (patch)
tree5407d59eb950789ecb818279b2396c942ede024b /modules/auth/user_form.go
parentb1696665bdf0e31c227493cf637d3867e102d131 (diff)
downloadgitea-71fd10dd37af16ce540ae151b51faffbc3ef2d84.tar.gz
gitea-71fd10dd37af16ce540ae151b51faffbc3ef2d84.zip
change minimum password length to 1
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index 0d6987ad82..72db6d59c2 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -39,7 +39,7 @@ type InstallForm struct {
RequireSignInView bool
AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"`
- AdminPasswd string `binding:"OmitEmpty;MinSize(6);MaxSize(255)" locale:"install.admin_password"`
+ AdminPasswd string `binding:"OmitEmpty;MaxSize(255)" locale:"install.admin_password"`
AdminConfirmPasswd string
AdminEmail string `binding:"OmitEmpty;Email;MaxSize(50)" locale:"install.admin_email"`
}
@@ -58,7 +58,7 @@ func (f *InstallForm) Validate(ctx *macaron.Context, errs binding.Errors) bindin
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(255)"`
+ Password string `form:"password" binding:"Required;MaxSize(255)"`
Retype string `form:"retype"`
LoginType string `form:"logintype"`
LoginName string `form:"loginname"`
@@ -70,7 +70,7 @@ func (f *RegisterForm) Validate(ctx *macaron.Context, errs binding.Errors) bindi
type SignInForm struct {
UserName string `form:"uname" binding:"Required;MaxSize(35)"`
- Password string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"`
+ Password string `form:"password" binding:"Required;MaxSize(255)"`
Remember bool `form:"remember"`
}
@@ -117,7 +117,7 @@ func (f *AddEmailForm) Validate(ctx *macaron.Context, errs binding.Errors) bindi
type ChangePasswordForm struct {
OldPassword string `form:"old_password" binding:"Required;MinSize(1);MaxSize(255)"`
- Password string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"`
+ Password string `form:"password" binding:"Required;MaxSize(255)"`
Retype string `form:"retype"`
}