You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have an is_active property in the db that we use (don't use, but will), for checking if the user is active.
I would like to implement an email verification system that when verified after sign up will turn that property from False to True, enabling the rest of the website.
When user.is_active == False, the website should function as it does when logged out, only with an activation page showing instead of login when going to restricted URLs. If I'm not mistaken, we have an activationneeded.html or something similar already in /templates.
Try starting out with this tutorial on email verification. We can skip all the db stuff, we already have is_active (they use confirmed), and we don't need confirmed_on. You should be able to skip down to "Add Email Confirmation," however double check the packages they're importing; we may need to add a few.
Issue by justinpotts
Wednesday Jun 17, 2015 at 03:44 GMT
Originally opened as https://github.com/justinpotts/terml.io-retired/issues/5
Currently, we have an is_active property in the db that we use (don't use, but will), for checking if the user is active.
I would like to implement an email verification system that when verified after sign up will turn that property from False to True, enabling the rest of the website.
When user.is_active == False, the website should function as it does when logged out, only with an activation page showing instead of login when going to restricted URLs. If I'm not mistaken, we have an activationneeded.html or something similar already in /templates.
Try starting out with this tutorial on email verification. We can skip all the db stuff, we already have is_active (they use confirmed), and we don't need confirmed_on. You should be able to skip down to "Add Email Confirmation," however double check the packages they're importing; we may need to add a few.
https://realpython.com/blog/python/handling-email-confirmation-in-flask/
The text was updated successfully, but these errors were encountered: