This is passwordreset - an Opal plugin.
This plugin deals with allowing the user to reset their password.
- Add this repo to your requirements.txt.
- Add
passwordreset
to your INSTALLED_APPS in settings.py - Change your login page to add a reset password link to
password_reset
- make sure OPAL_BRAND_NAME and DEFAULT_FROM_EMAIL are set in your settings.py
The plugin adds three views.
It uses the default password reset views in django.contrib.auth
.
It changes them in 2 ways..
- It adds bootstrap styling to the widgets.
- When we the user has changed their password we automatically log them in and redirct them to the change password page.
registration/password_reset_form.html
is the form the user enters their email and receives a reset link.
registration/password_reset_done.html
is the page that we redirect to after they've entered their email into the above form.
registration/password_reset_base.html
is the base template from which the above inherit
registration/password_reset_subject.txt
is the email subject line sent to the user.
registration/password_reset_email.html
is the html email body sent to the user.