Asap 198 setup emails and password reset - #242
Conversation
…t form. Generally cleanup.
There was a problem hiding this comment.
This worked great for me locally. I was able to invite a new user and have them set up their password over email. I also went through the password reset flow.
Minor nit: This might just be me, but I didn't register "Forgot your password?" or "Back to log in" as links. I think it could be as simple as highlighting them in the red color we use for links in the emails or an underline, but also happy to create a follow-up JIRA issue to discuss as a group.
Good idea! Done in 97c1759. Happy to review as a group as well. |
|
Noting that the OpenTofu configuration in the PR is blocking deployments to production. Going to temporarily comment out the password reset link. This is the only public, user facing change. We can return the link, once email is operational. |


We want to be able to send transactional emails from our app. This will enable the password reset and a simple invitation workflow.
This PR adds the following:
OpenTofu config for setting up AWS Simple Email Service (SES).
Production configuration to use SES to send emails.
Mail templates for simple password-related messages.
UI and workflow for password reset.
A simple admin invitation workflow
Some light test coverage for emails.
What additional steps are required to test this branch locally?
Testing mail locally requires some extra setup.
Copy the following configuration over config/environments/development.rb line 25.
Get values for SMTP from last pass and copy into the above configuration in place of "ENV.fetch" statements.
Make sure to run database migrations. Try testing out email features.
NB: Emails sent from localhost will likely get flagged as spam by Gmail. This should be fixed in production.
Try out the password reset and admin invitation workflow. For the latter visit "/admin/users/new" and check the "Send invitation email" box.
No.