prototoolagain/app/forms.py
Jimmy 0a4f870f67 Initial commit: Inspection reporting app
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 01:03:51 +01:00

17 lines
No EOL
455 B
Python

"""WTForms for the application."""
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Length
class LoginForm(FlaskForm):
"""Login form."""
username = StringField(
"Username", validators=[DataRequired(), Length(min=1, max=64)]
)
password = PasswordField(
"Password", validators=[DataRequired()]
)
submit = SubmitField("Login")