distribusi-verse/verse/forms/forgotpasswordform.py

16 lines
445 B
Python
Raw Normal View History

"""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
class ForgotPasswordForm(FlaskForm):
"""Forgotten password distribusiverse form class."""
email = StringField(
"Email address:",
validators=[validators.InputRequired(), Email(), Length(6, 64)],
)
submit = SubmitField("Send email")