astrosat / django-astrosat-users

Common backend library for Astrosat projects' user management
GNU General Public License v3.0
2 stars 0 forks source link

refactor the emails sent when creating a new CustomerUser #62

Closed allynt closed 4 years ago

allynt commented 4 years ago

Checklist

Is your feature request related to a problem? Please describe

When a new CustomerUser is created do not automatically send a email asking them to verify their email address - instead send an email asking them to reset their password. When a User resets their password, verify their email address as well.

Also set the status of all associated CustomerUsers to "ACTIVE".

Note that this does not apply to an existing User being added to a Customer.

Note also that the reset password message should use a custom template rather than the built-in allauth template.

Note also also that I may want to modify adapter.send_mail to return the generated template (so that I can store it as a sent message for the Customer ADMIN).