Commit Graph

8 Commits

Author SHA1 Message Date
Sage Vaillancourt 3857674244 Put fallbacks in their own file. 2022-09-27 02:47:38 +00:00
Sage Vaillancourt d358c55017 Add basic fallbacks for missing db/email creds.
Fallbacks may eventually warrant their own file.
Use f-strings to format password-reset emails.
Automatically delete email-reset rows after 15 minutes.
 - Cute, but a proper vacuum would likely be more robust.
Remove deprecated FLASK_ENV use.
Use exceptions in generate_pdf()
2022-09-26 17:00:21 -04:00
Sage Vaillancourt 7800c24f99 Forbid password resets after 15 minutes. 2022-09-26 09:40:48 -04:00
Sage Vaillancourt ae1a743855 Inform user if password-reset failed to send.
Remove unused db code.
2022-09-26 08:52:42 -04:00
Sage Vaillancourt 611f4f10f6 Centralize index rendering.
Start building more flexibility about missing environment variables.
2022-09-25 21:57:55 -04:00
Sage Vaillancourt 0f73db5e45 Add functionality for password-reset emails.
Start building up multi-template feature.
Redirect to homepage and display error instead of returning plaintext.
Make usernames case-insensitive.
2022-09-26 01:38:17 +00:00
Sage Vaillancourt d5be15a827 Handle possibly-missing users. 2022-09-23 14:08:44 -04:00
Sage Vaillancourt ff659db77f Some project re-org, and add pytest.
Rename flaskr/ to undercover/
Rename writing_templates/ to letter_templates/
Put db testing code into __main__ check
Break css optimization into its own file and add simple testing.
Rename writing.py to routes.py.
Move cached index directly into routes.py
2022-09-23 11:35:56 -04:00