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:
Cyberes 2023-03-30 04:44:53 -06:00 committed by GitHub
parent f0d8f66eaa
commit 9d641d88b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/15352.bugfix Normal file
View file

@ -0,0 +1 @@
Fix missing app variable in mail subject for password resets. Contributed by Cyberes.

View file

@ -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,
)