forked from crunk/distribusi-verse
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.
23 lines
559 B
23 lines
559 B
"""Login form to validate user."""
|
|
from wtforms import (
|
|
StringField,
|
|
SubmitField,
|
|
PasswordField,
|
|
)
|
|
|
|
from wtforms import validators
|
|
from wtforms.validators import Length, Email
|
|
from flask_wtf import FlaskForm
|
|
|
|
|
|
class LoginForm(FlaskForm):
|
|
"""Login distribusiverse form class."""
|
|
|
|
email = StringField(
|
|
"Email address:",
|
|
validators=[validators.InputRequired(), Email(), Length(6, 64)],
|
|
)
|
|
password = PasswordField(
|
|
"Password:", validators=[validators.InputRequired()]
|
|
)
|
|
submit = SubmitField("Sign In")
|
|
|