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

This commit is contained in:
Jeyachandran Rathnam 2022-12-14 07:02:28 -05:00 committed by GitHub
parent 5025dbf7a2
commit e512b25cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

1
changelog.d/14672.misc Normal file
View file

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

View file

@ -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 %}