Bug #23743
open
Design/UX #22840: Email Documentation & Design Updates
Style "Password Changed" email
Added by Raymond Hoh 10 days ago.
Updated 1 day ago.
Category name:
Email Notifications
Deployment actions:
Run WP-CLI command in comment 2.
Description
As reported in https://redmine.gc.cuny.edu/issues/22840#note-5, the "Password Changed" email should use our new email redesign.
This email only gets sent when a user changes their password from the WP admin dashboard's "Users > Profile" page.
Files
Thanks for breaking this out and picking up another email, Ray. I don't think this is essential, but great if you can cover it. FYI that the email I included in my note linked above on the other ticket was generated by going here and saving a new password:
https://cunyac.reclaimhosting.dev/members/colinmcd/settings/
- Status changed from New to Testing Required
- Deployment actions updated (diff)
I've added the 'Password Changed' email in https://github.com/cuny-academic-commons/cac/commit/cec9c77b089088fa57002f0535d110c5a51a2869. This is available for testing on cdev.
Colin, let me know if the copy in the email needs to change.
Boone, you'll need to run the following in WP-CLI when deploying on production:
wp bp email create --type=password_changed --type-description="A user's password has changed" --subject="[CUNY Academic Commons] Password Changed" --content='<div style="margin-bottom:20px"><h2>Password Changed</h2></div>
<p>This email confirms that the password for your account, <strong>{{user.login}}</strong>, was changed on the CUNY Academic Commons.</p>
<p>If you did not change your password, please contact us at <a href="mailto:commonshelpsite@gmail.com">commonshelpsite@gmail.com</a>.</p>' --plain-text-content="This email confirms that the password for your account, {{user.login}}, was changed on the CUNY Academic Commons.
If you did not change your password, please contact us at commonshelpsite@gmail.com."
Colin, can you confirm the flow you are using to fire the Password Changed email?
The flow I used to get the Password Changed email is to use the WP admin dashboard's "Users > Profile" page to update the password. It should look like the attached screenshot. I did make some copy edits.
Ah sorry. Just re-read your post. You used the Account Settings page. Will do some testing and confirm.
Hi Colin, can you try making a password change on the "Account Settings > Security" page again and let me know if you are able to see the updated email?
Thanks Ray, I just tested both paths to password reset again and got the same email confirmation with your copy edits. All looks good!
Also available in: Atom
PDF