Skip to content

Instantly share code, notes, and snippets.

@pcustic

pcustic/forms.py Secret

Created January 16, 2024 12:04
Show Gist options
  • Save pcustic/c2bb3032ee19d3864f5c14349f995518 to your computer and use it in GitHub Desktop.
Save pcustic/c2bb3032ee19d3864f5c14349f995518 to your computer and use it in GitHub Desktop.
add to app/auth/forms.py
class ResetPasswordForm(FlaskForm):
password = PasswordField("New Password", validators=[DataRequired()])
password2 = PasswordField(
"Repeat Password", validators=[DataRequired(), EqualTo("password")]
)
submit = SubmitField("Confirm Password Reset")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment