The fieldname for the EqualTo validator for the confirm field was confirm itself. Changed it to password.

mascottejas 2013-02-07 06:01:10 -08:00
parent 0a41588b95
commit fe86142ef0

@ -203,7 +203,7 @@ Now that we've done our object model, time to build the form that goes with it.
password = PasswordField('Password', [Required()]) password = PasswordField('Password', [Required()])
confirm = PasswordField('Repeat Password', [ confirm = PasswordField('Repeat Password', [
Required(), Required(),
EqualTo('confirm', message='Passwords must match') EqualTo('password', message='Passwords must match')
]) ])
accept_tos = BooleanField('I accept the TOS', [Required()]) accept_tos = BooleanField('I accept the TOS', [Required()])
recaptcha = RecaptchaField() recaptcha = RecaptchaField()