Andrey Antukh 643695b7fa
Send notification email on password change (#11393)
*  Send notification email on password change

Add a password-changed email template and send it after every
successful password change or first password set operation. This
gives users a visible signal when a new authentication factor is
established on their account.

Closes #11392

AI-assisted-by: longcat-2.0

* 🐛 Address code review feedback on password notification

- Send password-changed notification from recover-profile too
  (forgot-password reset path was missing the email).
- Strengthen test assertions to verify email factory, recipient,
  and name via :call-args-list instead of just call-count.
- Add negative test: no email sent when old-password is wrong.
- Wrap pre-existing update-profile-password test with send! mock
  to keep its scope focused.

Ref: PR #11393

AI-assisted-by: longcat-2.0
2026-09-23 13:43:18 +02:00
..
2026-09-23 12:50:18 +02:00
2026-09-22 10:22:31 +02:00
2026-09-22 10:22:31 +02:00
2024-05-29 19:05:04 +02:00