jasminefiner
9/26/2018 - 10:00 AM

05

UMS Email Password Reset 5

# app/auth_blueprint/forms.py
# ...
class ChangePasswordForm(FlaskForm):
    oldpassword = PasswordField('Old Password', validators=[DataRequired()])
    newpassword = PasswordField('New Password',
                                validators=[DataRequired(),
                                            EqualTo('newpassword2')])
    newpassword2 = PasswordField('Repeat New Password',
                                 validators=[DataRequired()])
    submit = SubmitField('Change Password')