Project

General

Profile

Actions

Bug #23743

closed

Design/UX #22840: Email Documentation & Design Updates

Style "Password Changed" email

Added by Raymond Hoh about 2 months ago. Updated 27 days ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Email Notifications
Target version:
Start date:
2025-10-20
Due date:
% Done:

0%

Estimated time:
Deployment actions:

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

2025-10-28_104159.png (79.4 KB) 2025-10-28_104159.png Raymond Hoh, 2025-10-28 01:43 PM
Actions #1

Updated by Colin McDonald about 2 months ago

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/

Actions #2

Updated by Raymond Hoh about 1 month ago

  • 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." 
Actions #3

Updated by Colin McDonald about 1 month ago

Hi Ray, this is the text of the (rich text) email I got when I changed my password on the dev site just now at this link:

https://cunyac.reclaimhosting.dev/members/colinmcd/settings/

The text is different from what you included in your last update. Do I have the emails mixed up or the steps I should be using to test the one you updated?

Hi colinmcd,

This notice confirms that your password was changed on CUNY Academic Commons.

If you did not change your password, please contact the Site Administrator at

This email has been sent to

Regards,
All at CUNY Academic Commons
https://cunyac.reclaimhosting.dev

Actions #4

Updated by Raymond Hoh about 1 month ago

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.

Actions #5

Updated by Raymond Hoh about 1 month ago

Ah sorry. Just re-read your post. You used the Account Settings page. Will do some testing and confirm.

Actions #6

Updated by Raymond Hoh about 1 month ago

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?

Actions #7

Updated by Colin McDonald about 1 month ago

Thanks Ray, I just tested both paths to password reset again and got the same email confirmation with your copy edits. All looks good!

Actions #8

Updated by Raymond Hoh 30 days ago

  • Status changed from Testing Required to Staged for Production Release

I've created the password_changed email post on production to get ahead of Monday's release. This is to save Boone one step :)

Actions #9

Updated by Boone Gorges 30 days ago

  • Deployment actions updated (diff)

Perfect, thanks!

Actions #10

Updated by Boone Gorges 27 days ago

  • Status changed from Staged for Production Release to Resolved
Actions

Also available in: Atom PDF