Fix #11308 : Remove dependency on jquery on reCAPTCHA page (#14672)

1.103.0-whithout-watcha
Jeyachandran Rathnam 2 years ago committed by GitHub
parent 5025dbf7a2
commit e512b25cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/14672.misc
  2. 3
      synapse/res/templates/recaptcha.html

@ -0,0 +1 @@
Remove dependency on jQuery on reCAPTCHA page.

@ -3,11 +3,10 @@
{% block header %}
<script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script>
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<link rel="stylesheet" href="/_matrix/static/client/register/style.css">
<script>
function captchaDone() {
$('#registrationForm').submit();
document.getElementById('registrationForm').submit();
}
</script>
{% endblock %}

Loading…
Cancel
Save