2022-03-25 15:37:00 +01:00
|
|
|
"""Forgotten password form to help user."""
|
|
|
|
|
|
|
|
from flask_wtf import FlaskForm
|
2024-04-21 20:44:08 +02:00
|
|
|
from wtforms import StringField, SubmitField, validators
|
|
|
|
from wtforms.validators import Email, Length
|
2022-03-25 15:37:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ForgotPasswordForm(FlaskForm):
|
|
|
|
"""Forgotten password distribusiverse form class."""
|
|
|
|
|
|
|
|
email = StringField(
|
|
|
|
"Email address:",
|
|
|
|
validators=[validators.InputRequired(), Email(), Length(6, 64)],
|
|
|
|
)
|
|
|
|
submit = SubmitField("Send email")
|