You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
511 B
18 lines
511 B
7 months ago
|
"""Login form to validate user."""
|
||
|
from flask_wtf import FlaskForm
|
||
|
from wtforms import PasswordField, StringField, SubmitField, validators
|
||
|
from wtforms.validators import Email, Length
|
||
|
|
||
|
|
||
|
class LoginForm(FlaskForm):
|
||
|
"""Login csv-library form"""
|
||
|
|
||
|
email = StringField(
|
||
|
"Email address:",
|
||
|
validators=[validators.InputRequired(), Email(), Length(6, 64)],
|
||
|
)
|
||
|
password = PasswordField(
|
||
|
"Password:", validators=[validators.InputRequired()]
|
||
|
)
|
||
|
submit = SubmitField("Sign In")
|