This is a skeleton implementation of user account management with webapp2.
You will have to take care of the following items:
Implement user registrationWrite code to handle loginSetup email verification and password recovery(This has been done for you already)- Send email verification and password recovery messages via email
- Configure login and password reset urls to use https (you will have to deploy your app to test this)
You can find most of the logic in main.py
(even though you may want to put handlers in separate files, as your app grows in complexity), a custom user model in models.py
, and some extremely simple views in views
.
You can find a detailed tutorial in this blog post: Custom user authentication with webapp2.
I implemented Jinja2 templating engine into abahgat's great user auth for webapp2.