13 lines
466 B
Python
13 lines
466 B
Python
from __future__ import annotations
|
|
|
|
from flask_wtf import FlaskForm
|
|
from wtforms import BooleanField, PasswordField, StringField, SubmitField
|
|
from wtforms.validators import DataRequired, Length
|
|
|
|
|
|
class LoginForm(FlaskForm):
|
|
username = StringField("Username", validators=[DataRequired(), Length(max=80)])
|
|
password = PasswordField("Password", validators=[DataRequired()])
|
|
remember = BooleanField("Remember this device")
|
|
submit = SubmitField("Sign in")
|