Add form for password reset request.

This commit is contained in:
Patrick Jentsch 2019-07-08 10:54:29 +02:00
parent 3e8ce1e719
commit 311498415b

View File

@ -9,3 +9,9 @@ class LoginForm(FlaskForm):
password = PasswordField('Password', validators=[DataRequired()]) password = PasswordField('Password', validators=[DataRequired()])
remember_me = BooleanField('Keep me logged in') remember_me = BooleanField('Keep me logged in')
submit = SubmitField('Log In') submit = SubmitField('Log In')
class PasswordResetRequestForm(FlaskForm):
email = StringField('Email', validators=[DataRequired(), Length(1, 64),
Email()])
submit = SubmitField('Reset Password')