open-law/app/forms/auth.py

10 lines
315 B
Python

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")