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')