2023-12-03 11:33:07 +01:00
|
|
|
"""Forgotten password form to help user."""
|
|
|
|
from flask_wtf import FlaskForm
|
2023-12-03 14:19:53 +01:00
|
|
|
from wtforms import StringField, SubmitField, validators
|
|
|
|
from wtforms.validators import Email, Length
|
2023-12-03 11:33:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ForgotPasswordForm(FlaskForm):
|
|
|
|
"""Forgotten password csv-library form"""
|
|
|
|
|
|
|
|
email = StringField(
|
|
|
|
"Email address:",
|
|
|
|
validators=[validators.InputRequired(), Email(), Length(6, 64)],
|
|
|
|
)
|
|
|
|
submit = SubmitField("Send email")
|