Closed adam-sutton-1992 closed 9 months ago
Task linked: CU-862j2cj0p Password reset email forms
The original commit had more in the front end than required as this can be done with default django forms.
I've since added this functionality. Reset password is now found at <url>/reset_password/
- or via a forgotten password href
.
A reset link is sent out to a valid email address where users choose their new password.
The only additional change will be how do we set the email address, password, and server info:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = os.environ.get('EMAIL_USER')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_PASS')
This is what is set currently, as I've tested on gmail (and since removed password). We could have a global medcat / cogstack email, or encourage users to set up their own .env
with the variables set.
Only the frontend changes have been done via
Login.vue
.Backend changes to be added when complete.