16 lines
491 B
Python
16 lines
491 B
Python
from flask_wtf import FlaskForm
|
|
from wtforms import StringField, SubmitField, BooleanField, PasswordField
|
|
from wtforms.validators import DataRequired
|
|
|
|
|
|
class LoginForm(FlaskForm):
|
|
username = StringField("Username", validators=[DataRequired()])
|
|
password = PasswordField("Password", validators=[DataRequired()])
|
|
remember = BooleanField("Remember Me")
|
|
submit = SubmitField()
|
|
|
|
|
|
class ConfirmAccessForm(FlaskForm):
|
|
confirm = BooleanField("Confirm")
|
|
submit = SubmitField()
|