May-31-2024, 05:47 PM
hi all,
my code below doesnt work ie the new password and confirm new password, the user on the web when they click the submit button they dont get the message saying passwords dont match and i have no idea why
the length validator works fine, ive imported the modules
rob
my code below doesnt work ie the new password and confirm new password, the user on the web when they click the submit button they dont get the message saying passwords dont match and i have no idea why
the length validator works fine, ive imported the modules
from wtforms.validators import InputRequired, Length, DataRequired, EqualTo, Regexp
new_password = PasswordField('New_Password', validators=[InputRequired(), Length(min=12), EqualTo('confirm_new_password', message='Passwords must match')]) confirm_new_password = PasswordField('Confirm_New_Password')thanks,
rob