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

Commit

Permalink
Merge pull request #5994 from matrix-org/anoa/html_template_fix
Browse files Browse the repository at this point in the history
Fix destructuring assumption bug with using load_jinja2_templates
  • Loading branch information
erikjohnston authored Sep 6, 2019
2 parents 146af7b + cf5a420 commit 5624d0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/5994.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the ability to send registration emails from the homeserver rather than delegating to an identity server.
2 changes: 1 addition & 1 deletion synapse/rest/client/v2_alpha/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def on_GET(self, request, medium):
request.setResponseCode(e.code)

# 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_password_reset_template_failure_html],
)
Expand Down
2 changes: 1 addition & 1 deletion synapse/rest/client/v2_alpha/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def on_GET(self, request, medium):
request.setResponseCode(e.code)

# 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_registration_template_failure_html],
)
Expand Down

0 comments on commit 5624d0f

Please sign in to comment.