i-VRESSE / bartender

Middleware web service to schedule jobs on various infrastructures
https://i-vresse-bartender.readthedocs.io
Apache License 2.0
1 stars 0 forks source link

Add email verification #57

Closed sverhoeven closed 1 year ago

sverhoeven commented 1 year ago

Currently anyone can register, login and use any of the routes. It would nice if the users email was verified before the job submission routes can be used. To prevent unwanted job submissions, this would be an extra security layer next to roles of PR #56 .

See https://fastapi-users.github.io/fastapi-users/10.4/configuration/routers/verify/ and https://fastapi-users.github.io/fastapi-users/10.4/configuration/user-manager/#on_after_request_verify

Once email sending is setup it would be nice to also add the forgot and reset password routes.

Is someone else's problem if #54 is implemented.

sverhoeven commented 1 year ago

Could use https://github.com/mailslurper/mailslurper as smtp server for development.