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

Commit df5db3f

Browse files
committed
Merge pull request #5994 from matrix-org/anoa/html_template_fix
2 parents 89f544f + 5624d0f commit df5db3f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

changelog.d/5994.feature

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add the ability to send registration emails from the homeserver rather than delegating to an identity server.

synapse/rest/client/v2_alpha/account.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def on_GET(self, request, medium):
271271
request.setResponseCode(e.code)
272272

273273
# Show a failure page with a reason
274-
html_template = load_jinja2_templates(
274+
html_template, = load_jinja2_templates(
275275
self.config.email_template_dir,
276276
[self.config.email_password_reset_template_failure_html],
277277
)

synapse/rest/client/v2_alpha/register.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def on_GET(self, request, medium):
298298
request.setResponseCode(e.code)
299299

300300
# Show a failure page with a reason
301-
html_template = load_jinja2_templates(
301+
html_template, = load_jinja2_templates(
302302
self.config.email_template_dir,
303303
[self.config.email_registration_template_failure_html],
304304
)

0 commit comments

Comments
 (0)