Browse Source

Merge pull request #1309 from stettberger/master

settings/password: no minimal required characters for OldPassword
for-closed-social
无闻 9 years ago
parent
commit
d86c4841fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/auth/user_form.go

+ 1
- 1
modules/auth/user_form.go 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"`
}

Loading…
Cancel
Save