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

Commit

Permalink
Remove registration fallback code. (#15405)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
clokep authored Apr 13, 2023
1 parent edae20f commit d751f65
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 227 deletions.
1 change: 1 addition & 0 deletions changelog.d/15405.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the broken, unspecced registration fallback. Note that the *login* fallback is unaffected by this change.
6 changes: 5 additions & 1 deletion synapse/res/templates/recaptcha.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 1 addition & 5 deletions synapse/res/templates/registration_token.html
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
4 changes: 4 additions & 0 deletions synapse/res/templates/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ body {
h3 { font-size: .85rem; }
h4 { font-size: .8rem; }
}

.error {
color: red;
}
7 changes: 6 additions & 1 deletion synapse/res/templates/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
34 changes: 0 additions & 34 deletions synapse/static/client/register/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions synapse/static/client/register/js/jquery-3.4.1.min.js

This file was deleted.

117 changes: 0 additions & 117 deletions synapse/static/client/register/js/register.js

This file was deleted.

3 changes: 0 additions & 3 deletions synapse/static/client/register/register_config.sample.js

This file was deleted.

64 changes: 0 additions & 64 deletions synapse/static/client/register/style.css

This file was deleted.

0 comments on commit d751f65

Please sign in to comment.