open-law/app/forms/auth.py

10 lines
315 B
Python
Raw Normal View History

2023-04-20 13:10:16 +00:00
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
user_id = StringField("Username", [DataRequired()])
password = PasswordField("Password", [DataRequired()])
submit = SubmitField("Login")