From 06b009938c641f6b030c72c38e81b74c75ea88e7 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 27 Aug 2026 10:03:49 +0000 Subject: [PATCH] :sparkles: 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 --- .../app/email/password-changed/en.html | 233 ++++++++++++++++++ .../app/email/password-changed/en.subj | 1 + .../app/email/password-changed/en.txt | 8 + backend/src/app/email.clj | 10 + backend/src/app/rpc/commands/profile.clj | 6 + .../test/backend_tests/rpc_profile_test.clj | 25 ++ 6 files changed, 283 insertions(+) create mode 100644 backend/resources/app/email/password-changed/en.html create mode 100644 backend/resources/app/email/password-changed/en.subj create mode 100644 backend/resources/app/email/password-changed/en.txt diff --git a/backend/resources/app/email/password-changed/en.html b/backend/resources/app/email/password-changed/en.html new file mode 100644 index 0000000000..f1c2862873 --- /dev/null +++ b/backend/resources/app/email/password-changed/en.html @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +
+ + + + +
+ + + + + + +
+ +
+
+
+ +
+ + + +
+ +
+ + + + + + + + + + + + + + + + +
+
+ Hello {{name|abbreviate:25}}!
+
+
+ Your password has been changed. +
+
+
+ If you did not make this change, please contact support immediately or reset your password. +
+
+
+ Enjoy!
+
+
+ The Penpot team.
+
+
+