From e512b25cd1618941d165b37f0518ec5765a3b23d Mon Sep 17 00:00:00 2001
From: Jeyachandran Rathnam <jai.rathnem@gmail.com>
Date: Wed, 14 Dec 2022 07:02:28 -0500
Subject: [PATCH] Fix #11308 : Remove dependency on jquery on reCAPTCHA page
 (#14672)

---
 changelog.d/14672.misc               | 1 +
 synapse/res/templates/recaptcha.html | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)
 create mode 100644 changelog.d/14672.misc

diff --git a/changelog.d/14672.misc b/changelog.d/14672.misc
new file mode 100644
index 0000000000..b94ebed971
--- /dev/null
+++ b/changelog.d/14672.misc
@@ -0,0 +1 @@
+Remove dependency on jQuery on reCAPTCHA page.
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 %}
-- 
GitLab