Update templates/register.html
Browse files- templates/register.html +2 -2
templates/register.html
CHANGED
@@ -13,14 +13,14 @@
|
|
13 |
<!-- ... existing form fields ... -->
|
14 |
|
15 |
<!-- Hidden field for the reCAPTCHA token -->
|
16 |
-
<input type="hidden" id="
|
17 |
|
18 |
<div class="g-recaptcha" data-sitekey="6LdaUQIpAAAAACQFcOxakEVXK9QHpaYbic6IClNO"></div>
|
19 |
<button type="submit">Register</button>
|
20 |
</form>
|
21 |
<script>
|
22 |
function onSubmit(token) {
|
23 |
-
document.getElementById("
|
24 |
document.getElementById("registration-form").submit(); // Submit the form
|
25 |
}
|
26 |
</script>
|
|
|
13 |
<!-- ... existing form fields ... -->
|
14 |
|
15 |
<!-- Hidden field for the reCAPTCHA token -->
|
16 |
+
<input type="hidden" id="token" name="token" value="">
|
17 |
|
18 |
<div class="g-recaptcha" data-sitekey="6LdaUQIpAAAAACQFcOxakEVXK9QHpaYbic6IClNO"></div>
|
19 |
<button type="submit">Register</button>
|
20 |
</form>
|
21 |
<script>
|
22 |
function onSubmit(token) {
|
23 |
+
document.getElementById("token").value = token; // Set the token in the hidden field
|
24 |
document.getElementById("registration-form").submit(); // Submit the form
|
25 |
}
|
26 |
</script>
|