13 lines
423 B
Python
13 lines
423 B
Python
from flask_wtf import FlaskForm
|
|
from wtforms import StringField, PasswordField, BooleanField, SubmitField
|
|
from wtforms.validators import DataRequired
|
|
|
|
|
|
class LoginForm(FlaskForm):
|
|
"""/auth/login/"""
|
|
|
|
username = StringField("Username", validators=[DataRequired()])
|
|
password = PasswordField("Password", validators=[DataRequired()])
|
|
remember = BooleanField("Stay logged in")
|
|
submit = SubmitField("Log in")
|