diff options
author | 无闻 <u@gogs.io> | 2015-07-25 00:45:53 +0800 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2015-07-25 00:45:53 +0800 |
commit | d86c4841fa1763edb55a480184757e79f9b12e46 (patch) | |
tree | bcd628678a4c10e8c7e125606a323ae2cc0e29f9 | |
parent | fcd6b451927d4f29e8caad9df0fd60d3e281fc1d (diff) | |
parent | b36134194cf8304ba553c2623447ea60586cd5e2 (diff) | |
download | gitea-d86c4841fa1763edb55a480184757e79f9b12e46.tar.gz gitea-d86c4841fa1763edb55a480184757e79f9b12e46.zip |
Merge pull request #1309 from stettberger/master
settings/password: no minimal required characters for OldPassword
-rw-r--r-- | modules/auth/user_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go index fa5583ffc6..c2dc85413b 100644 --- a/modules/auth/user_form.go +++ b/modules/auth/user_form.go @@ -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"` } |