20 lines
466 B
Python
20 lines
466 B
Python
|
"""Forgotten password form to help user."""
|
||
|
from wtforms import (
|
||
|
StringField,
|
||
|
SubmitField,
|
||
|
)
|
||
|
|
||
|
from wtforms import validators
|
||
|
from wtforms.validators import Length, Email
|
||
|
from flask_wtf import FlaskForm
|
||
|
|
||
|
|
||
|
class ForgotPasswordForm(FlaskForm):
|
||
|
"""Forgotten password csv-library form"""
|
||
|
|
||
|
email = StringField(
|
||
|
"Email address:",
|
||
|
validators=[validators.InputRequired(), Email(), Length(6, 64)],
|
||
|
)
|
||
|
submit = SubmitField("Send email")
|