aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-07-25 00:45:53 +0800
committer无闻 <u@gogs.io>2015-07-25 00:45:53 +0800
commitd86c4841fa1763edb55a480184757e79f9b12e46 (patch)
treebcd628678a4c10e8c7e125606a323ae2cc0e29f9 /modules/auth/user_form.go
parentfcd6b451927d4f29e8caad9df0fd60d3e281fc1d (diff)
parentb36134194cf8304ba553c2623447ea60586cd5e2 (diff)
downloadgitea-d86c4841fa1763edb55a480184757e79f9b12e46.tar.gz
gitea-d86c4841fa1763edb55a480184757e79f9b12e46.zip
Merge pull request #1309 from stettberger/master
settings/password: no minimal required characters for OldPassword
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go2
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"`
}