summary refs log tree commit diff
path: root/synapse/config/captcha.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-10-02 06:15:53 -0400
committerGitHub <noreply@github.com>2020-10-02 11:15:53 +0100
commit34ff8da83b54024289f515c6d73e6b486574d699 (patch)
treebb7570650c3b3a54c5a6fe2263ec9a4e26dd0fb8 /synapse/config/captcha.py
parentFix malformed log line in new federation "catch up" logic (#8442) (diff)
downloadsynapse-34ff8da83b54024289f515c6d73e6b486574d699.tar.xz
Convert additional templates to Jinja (#8444)
This converts a few more of our inline HTML templates to Jinja. This is somewhat part of #7280 and should make it a bit easier to customize these in the future.
Diffstat (limited to 'synapse/config/captcha.py')
-rw-r--r--synapse/config/captcha.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/config/captcha.py b/synapse/config/captcha.py
index 82f04d7966..cb00958165 100644
--- a/synapse/config/captcha.py
+++ b/synapse/config/captcha.py
@@ -28,6 +28,9 @@ class CaptchaConfig(Config):
             "recaptcha_siteverify_api",
             "https://www.recaptcha.net/recaptcha/api/siteverify",
         )
+        self.recaptcha_template = self.read_templates(
+            ["recaptcha.html"], autoescape=True
+        )[0]
 
     def generate_config_section(self, **kwargs):
         return """\