Prompt
How do I send a password changed notification?
Latest observation
Sep 23, 2026
OpenAI APIWeb search: off
A common way is to send an email right after the password update succeeds.
Typical flow
- User submits new password.
- You validate it and save the new password hash.
- If the save succeeds, send a “Your password was changed” notification.
- Include:
- time of change
- device/IP if useful
- a “If this wasn’t you, contact support / reset your password” link
Example email
Subject: Your password was changed
Body:
Hi [Name],
Your account password was changed successfully on [date/time].
If you did not make this change, please reset your password immediately or contact support.
Good security practice
Also consider:
- sending the notification to the user’s verified email
- logging the event
- invalidating other active sessions after password change
- optionally sending a second alert if the change happened from a new device/location
If you want, I can show you how to implement this in a specific stack like Node.js, Django, Laravel, or .NET.