Merge branch 'master' of github.com:gogits/gogs into develop

This commit is contained in:
Unknwon 2015-07-25 00:48:42 +08:00
commit 70d44e9565
4 changed files with 13 additions and 10 deletions

View file

@ -116,7 +116,7 @@ func (f *AddEmailForm) Validate(ctx *macaron.Context, errs binding.Errors) bindi
}
type ChangePasswordForm struct {
OldPassword string `form:"old_password" binding:"Required;MinSize(6);MaxSize(255)"`
OldPassword string `form:"old_password" binding:"Required;MinSize(1);MaxSize(255)"`
Password string `form:"password" binding:"Required;MinSize(6);MaxSize(255)"`
Retype string `form:"retype"`
}