Password reset #448

Merged
elegaanz merged 10 commits from password-reset into master 5 years ago

10 Commits (main)

Author SHA1 Message Date
Baptiste Gelez b2df1d839d Fix the debug mailer 5 years ago
Baptiste Gelez 6e9d1dfea2 Use master branch of lettre so that we can build with the latest OpenSSL 5 years ago
Baptiste Gelez 0f1685ca9b Avoid panicking while owning a request lock 5 years ago
Baptiste Gelez 25d537feae Forgot a 0 è_é 5 years ago
Baptiste Gelez c782ca1f8d Also remove the custom_derive and plugin features while we are at it 5 years ago
Baptiste Gelez 4cd0b564f2 Remove unused feature 5 years ago
Baptiste Gelez 7bb4049870 Remove old requests even if the current one is not valid 5 years ago
Baptiste Gelez d377db2011 Avoid locking so many times
Fix durations
5 years ago
Baptiste Gelez 733d9547f9 Various improvements and fixes for password reset
- Reorganize src/mail.rs to make it  cleaner
- add a build_mail function
- only make the requests invalid after 2 hours
- avoid infintely-growing list of requests by deleting them once completed, or after 24 hours
- avoid sending many requests for the same user
- validate the password reset form
5 years ago
Baptiste Gelez 795791afc3 Password reset 5 years ago