mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
15 lines
483 B
Python
15 lines
483 B
Python
|
|
from flask_wtf import Form
|
||
|
|
from wtforms import StringField, PasswordField
|
||
|
|
from wtforms.validators import DataRequired, Email, Length
|
||
|
|
|
||
|
|
|
||
|
|
class LoginForm(Form):
|
||
|
|
email_address = StringField('Email address', validators=[
|
||
|
|
Length(255),
|
||
|
|
DataRequired(message='Email cannot be empty'),
|
||
|
|
Email(message='Please enter a valid email address')
|
||
|
|
])
|
||
|
|
password = PasswordField('Password', validators=[
|
||
|
|
DataRequired(message='Please enter your password')
|
||
|
|
])
|