mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-24 18:45:52 +03:00
Fix missing app variable in mail subject for password resets (#15352)
* Update mailer.py Fix `KeyError: 'app'` * Create 15352.bugfix Signed-off-by: Cyberes <cyberes@evulid.cc> --------- Signed-off-by: Cyberes <cyberes@evulid.cc>
This commit is contained in:
parent
f0d8f66eaa
commit
9d641d88b7
2 changed files with 2 additions and 1 deletions
1
changelog.d/15352.bugfix
Normal file
1
changelog.d/15352.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix missing app variable in mail subject for password resets. Contributed by Cyberes.
|
|
@ -149,7 +149,7 @@ class Mailer:
|
|||
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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue