mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-19 08:24:25 +01:00
Fix destructuring assumption bug
This commit is contained in:
parent
146af7b47f
commit
ca74b140f2
2 changed files with 2 additions and 2 deletions
|
@ -261,7 +261,7 @@ class PasswordResetSubmitTokenServlet(RestServlet):
|
||||||
request.setResponseCode(e.code)
|
request.setResponseCode(e.code)
|
||||||
|
|
||||||
# Show a failure page with a reason
|
# Show a failure page with a reason
|
||||||
html_template = load_jinja2_templates(
|
[html_template] = load_jinja2_templates(
|
||||||
self.config.email_template_dir,
|
self.config.email_template_dir,
|
||||||
[self.config.email_password_reset_template_failure_html],
|
[self.config.email_password_reset_template_failure_html],
|
||||||
)
|
)
|
||||||
|
|
|
@ -293,7 +293,7 @@ class RegistrationSubmitTokenServlet(RestServlet):
|
||||||
request.setResponseCode(e.code)
|
request.setResponseCode(e.code)
|
||||||
|
|
||||||
# Show a failure page with a reason
|
# Show a failure page with a reason
|
||||||
html_template = load_jinja2_templates(
|
[html_template] = load_jinja2_templates(
|
||||||
self.config.email_template_dir,
|
self.config.email_template_dir,
|
||||||
[self.config.email_registration_template_failure_html],
|
[self.config.email_registration_template_failure_html],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue