2019-07-05 12:47:35 +00:00
|
|
|
from flask_wtf import FlaskForm
|
|
|
|
from wtforms import StringField, PasswordField, BooleanField, SubmitField
|
|
|
|
from wtforms.validators import DataRequired, Length, Email
|
|
|
|
|
|
|
|
|
|
|
|
class LoginForm(FlaskForm):
|
|
|
|
email = StringField('Email', validators=[DataRequired(), Length(1, 64),
|
|
|
|
Email()])
|
|
|
|
password = PasswordField('Password', validators=[DataRequired()])
|
|
|
|
remember_me = BooleanField('Keep me logged in')
|
|
|
|
submit = SubmitField('Log In')
|
2019-07-08 08:54:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
class PasswordResetRequestForm(FlaskForm):
|
|
|
|
email = StringField('Email', validators=[DataRequired(), Length(1, 64),
|
|
|
|
Email()])
|
|
|
|
submit = SubmitField('Reset Password')
|