Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix missing app variable in mail subject for password resets (#15352)
Browse files Browse the repository at this point in the history
* Update mailer.py

Fix `KeyError: 'app'`

* Create 15352.bugfix

Signed-off-by: Cyberes <[email protected]>

---------

Signed-off-by: Cyberes <[email protected]>
  • Loading branch information
Cyberes authored Mar 30, 2023
1 parent f0d8f66 commit 9d641d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/15352.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix missing app variable in mail subject for password resets. Contributed by Cyberes.
2 changes: 1 addition & 1 deletion synapse/push/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async def send_password_reset_mail(
await self.send_email(
email_address,
self.email_subjects.password_reset
% {"server_name": self.hs.config.server.server_name},
% {"server_name": self.hs.config.server.server_name, "app": self.app_name},
template_vars,
)

Expand Down

0 comments on commit 9d641d8

Please sign in to comment.