diff options
author | Unknwon <u@gogs.io> | 2015-07-25 00:49:40 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-25 00:49:40 +0800 |
commit | 54b58e988d4fac4a3f67feef39d62134352fb07c (patch) | |
tree | db32c6c6860f6b6bacb0c90c32a25b5a3b7c8002 /modules/auth/user_form.go | |
parent | dc4aab9925b46f8ad4b18f7926e2904163c1c5b5 (diff) | |
parent | 70d44e9565e372c73d4f0f42273d4899e8e07f75 (diff) |
Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
Diffstat (limited to 'modules/auth/user_form.go')
-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 fa5583ff..c2dc8541 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"` } |