Gregniuki commited on
Commit
91e8790
1 Parent(s): 2535021

Update templates/register.html

Browse files
Files changed (1) hide show
  1. templates/register.html +5 -2
templates/register.html CHANGED
@@ -22,7 +22,9 @@
22
  <label for="confirm_password">Confirm Password:</label>
23
  <input type="password" id="confirm_password" name="confirm_password" required><br><br>
24
 
25
- <!-- Invisible reCAPTCHA badge -->
 
 
26
  <button class="g-recaptcha"
27
  data-sitekey="6LdaUQIpAAAAACQFcOxakEVXK9QHpaYbic6IClNO"
28
  data-callback='onSubmit'
@@ -32,7 +34,8 @@
32
  </form>
33
  <script>
34
  function onSubmit(token) {
35
- document.getElementById("registration-form").submit();
 
36
  }
37
  </script>
38
  </body>
 
22
  <label for="confirm_password">Confirm Password:</label>
23
  <input type="password" id="confirm_password" name="confirm_password" required><br><br>
24
 
25
+ <!-- Hidden field for the reCAPTCHA token -->
26
+ <input type="hidden" id="recaptcha_token" name="recaptcha_token" value="">
27
+
28
  <button class="g-recaptcha"
29
  data-sitekey="6LdaUQIpAAAAACQFcOxakEVXK9QHpaYbic6IClNO"
30
  data-callback='onSubmit'
 
34
  </form>
35
  <script>
36
  function onSubmit(token) {
37
+ document.getElementById("recaptcha_token").value = token; // Set the token in the hidden field
38
+ document.getElementById("registration-form").submit(); // Submit the form
39
  }
40
  </script>
41
  </body>