summary refs log tree commit diff
path: root/synapse/res/templates
diff options
context:
space:
mode:
authorCallum Brown <callum@calcuode.com>2021-08-18 13:13:35 +0100
committerGitHub <noreply@github.com>2021-08-18 08:13:35 -0400
commit6e613a10d072c32e72d6b97b2d178bb840769f3e (patch)
tree0dec01aa171113e8fc9d5ca5cf7a1069edc50deb /synapse/res/templates
parentRefactor `on_receive_pdu` code (#10615) (diff)
downloadsynapse-6e613a10d072c32e72d6b97b2d178bb840769f3e.tar.xz
Display an error page during failure of fallback UIA. (#10561)
Diffstat (limited to 'synapse/res/templates')
-rw-r--r--synapse/res/templates/recaptcha.html3
-rw-r--r--synapse/res/templates/terms.html3
2 files changed, 6 insertions, 0 deletions
diff --git a/synapse/res/templates/recaptcha.html b/synapse/res/templates/recaptcha.html
index 63944dc608..b3db06ef97 100644
--- a/synapse/res/templates/recaptcha.html
+++ b/synapse/res/templates/recaptcha.html
@@ -16,6 +16,9 @@ function captchaDone() {
 <body>
 <form id="registrationForm" method="post" action="{{ myurl }}">
     <div>
+        {% if error is defined %}
+            <p class="error"><strong>Error: {{ error }}</strong></p>
+        {% endif %}
         <p>
         Hello! We need to prevent computer programs and other automated
         things from creating accounts on this server.
diff --git a/synapse/res/templates/terms.html b/synapse/res/templates/terms.html
index dfef9897ee..369ff446d2 100644
--- a/synapse/res/templates/terms.html
+++ b/synapse/res/templates/terms.html
@@ -8,6 +8,9 @@
 <body>
 <form id="registrationForm" method="post" action="{{ myurl }}">
     <div>
+        {% if error is defined %}
+            <p class="error"><strong>Error: {{ error }}</strong></p>
+        {% endif %}
         <p>
             Please click the button below if you agree to the
             <a href="{{ terms_url }}">privacy policy of this homeserver.</a>