email=StringField('Email Address',validators=[InputRequired(),Email(message='You must enter a valid email address.'),Length(max=50)])
password=PasswordField('Password',validators=[InputRequired(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.')])
password_reenter=PasswordField('Re-Enter Password',validators=[InputRequired(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.'),EqualTo('password',message='Passwords do not match.')])
email=StringField('Email Address',validators=[InputRequired(),Email(message='You must enter a valid email address.'),Length(max=50)])
classUpdatePasswordForm(FlaskForm):
password=PasswordField('Password',validators=[InputRequired(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.')])
password_reenter=PasswordField('Re-Enter Password',validators=[InputRequired(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.'),EqualTo('password',message='Passwords do not match.')])
email=StringField('Email Address',validators=[InputRequired(),Email(message='You must enter a valid email address.'),Length(max=50)])
password=PasswordField('Password (Optional)',validators=[Optional(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.')])
classDeleteUserForm(FlaskForm):
password=PasswordField('Confirm Your Password',validators=[InputRequired(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.')])
notify=BooleanField('Notify deletion by email',render_kw={'checked':True})
classUpdateUserForm(FlaskForm):
user_password=PasswordField('Confirm Your Password',validators=[InputRequired(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.')])
email=StringField('Email Address',validators=[Optional(),Email(message='You must enter a valid email address.'),Length(max=50)])
password=PasswordField('Change Password',validators=[Optional(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.')])
password_reenter=PasswordField('Re-Enter New Password',validators=[EqualTo('password',message='Passwords do not match.')])
notify=BooleanField('Notify changes by email',render_kw={'checked':True})
classUpdateAccountForm(FlaskForm):
password_confirm=PasswordField('Current Password',validators=[InputRequired(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.')])
email=StringField('Email Address',validators=[Optional(),Email(message='You must enter a valid email address.'),Length(max=50)])
password=PasswordField('Change Password',validators=[Optional(),Length(min=6,max=30,message='The password must be between 6 and 20 characters long.')])