forked from Github-Mirrors/canaille
restores comparison between 'password' and 'confirmation' in registration form
This commit is contained in:
parent
c6eec2b399
commit
4bdd2de8f2
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,9 @@ def registration(data=None, hash=None):
|
|||
]
|
||||
form["password2"].validators = [
|
||||
wtforms.validators.DataRequired(),
|
||||
wtforms.validators.EqualTo(
|
||||
"password1", message=_("Password and confirmation do not match.")
|
||||
),
|
||||
]
|
||||
form["password1"].flags.required = True
|
||||
form["password2"].flags.required = True
|
||||
|
|
Loading…
Reference in a new issue