diff options
author | Jeyachandran Rathnam <jai.rathnem@gmail.com> | 2022-12-14 07:02:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-14 12:02:28 +0000 |
commit | e512b25cd1618941d165b37f0518ec5765a3b23d (patch) | |
tree | 0944e8186e385ad2f4a78eb8c1bab2d07f4aaf47 /synapse/res | |
parent | Merge tag 'v1.74.0rc1' into develop (diff) | |
download | synapse-e512b25cd1618941d165b37f0518ec5765a3b23d.tar.xz |
Fix #11308 : Remove dependency on jquery on reCAPTCHA page (#14672)
Diffstat (limited to 'synapse/res')
-rw-r--r-- | synapse/res/templates/recaptcha.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/res/templates/recaptcha.html b/synapse/res/templates/recaptcha.html index 8204928cdf..f00992a24b 100644 --- a/synapse/res/templates/recaptcha.html +++ b/synapse/res/templates/recaptcha.html @@ -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 %} |