Update templates/register.html
Browse files- templates/register.html +5 -16
templates/register.html
CHANGED
@@ -4,8 +4,7 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Register</title>
|
7 |
-
|
8 |
-
<script src="https://www.google.com/recaptcha/enterprise.js?render=6LdaUQIpAAAAACQFcOxakEVXK9QHpaYbic6IClNO" async defer></script>
|
9 |
</head>
|
10 |
<body>
|
11 |
<h1>Register</h1>
|
@@ -24,20 +23,10 @@
|
|
24 |
|
25 |
<!-- Hidden field for the reCAPTCHA token -->
|
26 |
<input type="hidden" id="recaptcha_token" name="recaptcha_token" value="">
|
27 |
-
<div class="g-recaptcha" data-sitekey="
|
28 |
-
<
|
29 |
-
|
30 |
-
data-sitekey="6LdaUQIpAAAAACQFcOxakEVXK9QHpaYbic6IClNO"
|
31 |
-
data-callback='onSubmit'
|
32 |
-
data-action='submit'>
|
33 |
-
Register
|
34 |
-
</button>
|
35 |
</form>
|
36 |
-
|
37 |
-
function onSubmit(token) {
|
38 |
-
document.getElementById("recaptcha_token").value = token; // Set the token in the hidden field
|
39 |
-
document.getElementById("registration-form").submit(); // Submit the form
|
40 |
-
}
|
41 |
-
</script>
|
42 |
</body>
|
43 |
</html>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Register</title>
|
7 |
+
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
<h1>Register</h1>
|
|
|
23 |
|
24 |
<!-- Hidden field for the reCAPTCHA token -->
|
25 |
<input type="hidden" id="recaptcha_token" name="recaptcha_token" value="">
|
26 |
+
<div class="g-recaptcha" data-sitekey="6LdMjQcpAAAAAGtbNZkL17ry1scsQjp1HSEhkLNl"></div>
|
27 |
+
<br/>
|
28 |
+
<input type="submit" value="Submit">
|
|
|
|
|
|
|
|
|
|
|
29 |
</form>
|
30 |
+
|
|
|
|
|
|
|
|
|
|
|
31 |
</body>
|
32 |
</html>
|