diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-04-13 11:36:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 11:36:29 -0400 |
commit | d751f65e71bef80ec4181e4495c954551ddf33f7 (patch) | |
tree | 31d6526dd18ead73553caa5db623ad6116f0d887 /synapse/res | |
parent | Improve robustness when handling a perspective key response by deduplicating ... (diff) | |
download | synapse-d751f65e71bef80ec4181e4495c954551ddf33f7.tar.xz |
Remove registration fallback code. (#15405)
The registration fallback is broken and unspecced. This removes it since there is no plan to spec it. Note that this does not modify the login fallback code.
Diffstat (limited to 'synapse/res')
-rw-r--r-- | synapse/res/templates/recaptcha.html | 6 | ||||
-rw-r--r-- | synapse/res/templates/registration_token.html | 6 | ||||
-rw-r--r-- | synapse/res/templates/style.css | 4 | ||||
-rw-r--r-- | synapse/res/templates/terms.html | 7 |
4 files changed, 16 insertions, 7 deletions
diff --git a/synapse/res/templates/recaptcha.html b/synapse/res/templates/recaptcha.html index f00992a24b..b80e5e8f24 100644 --- a/synapse/res/templates/recaptcha.html +++ b/synapse/res/templates/recaptcha.html @@ -3,7 +3,11 @@ {% block header %} <script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script> -<link rel="stylesheet" href="/_matrix/static/client/register/style.css"> +<style type="text/css"> + .g-recaptcha div { + margin: auto; + } +</style> <script> function captchaDone() { document.getElementById('registrationForm').submit(); diff --git a/synapse/res/templates/registration_token.html b/synapse/res/templates/registration_token.html index ee4e5295e7..179e994279 100644 --- a/synapse/res/templates/registration_token.html +++ b/synapse/res/templates/registration_token.html @@ -1,12 +1,8 @@ {% extends "_base.html" %} {% block title %}Authentication{% endblock %} -{% block header %} -<link rel="stylesheet" href="/_matrix/static/client/register/style.css"> -{% endblock %} - {% block body %} -<form id="registrationForm" method="post" action="{{ myurl }}"> +<form method="post" action="{{ myurl }}"> <div> {% if error is defined %} <p class="error"><strong>Error: {{ error }}</strong></p> diff --git a/synapse/res/templates/style.css b/synapse/res/templates/style.css index 097b235ae5..9899238bb6 100644 --- a/synapse/res/templates/style.css +++ b/synapse/res/templates/style.css @@ -27,3 +27,7 @@ body { h3 { font-size: .85rem; } h4 { font-size: .8rem; } } + +.error { + color: red; +} diff --git a/synapse/res/templates/terms.html b/synapse/res/templates/terms.html index ffabebdd8b..66c40a7000 100644 --- a/synapse/res/templates/terms.html +++ b/synapse/res/templates/terms.html @@ -2,7 +2,12 @@ {% block title %}Authentication{% endblock %} {% block header %} -<link rel="stylesheet" href="/_matrix/static/client/register/style.css"> +<style type="text/css"> + #registrationForm input { + display: block; + margin: auto; + } +</style> {% endblock %} {% block body %} |