Update templates/login.html
Browse files- templates/login.html +5 -2
templates/login.html
CHANGED
@@ -17,10 +17,13 @@
|
|
17 |
<label for="password">Password:</label>
|
18 |
<input type="password" id="password" name="password" required><br><br>
|
19 |
|
20 |
-
|
|
|
|
|
21 |
<div class="g-recaptcha"
|
22 |
data-sitekey="6LeSJgwpAAAAAD9UlPdC911k8UgD6Uh3068xXgGj"
|
23 |
data-callback="setRecaptchaToken">
|
|
|
24 |
</div>
|
25 |
</form>
|
26 |
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
@@ -36,7 +39,7 @@
|
|
36 |
if (!(token && email && password)) {
|
37 |
event.preventDefault(); // Prevent form submission
|
38 |
alert("Please fill in all required fields.");
|
39 |
-
}
|
40 |
// If fields are filled, form will proceed to submit
|
41 |
// reCAPTCHA validation will be handled automatically by Google's script
|
42 |
});
|
|
|
17 |
<label for="password">Password:</label>
|
18 |
<input type="password" id="password" name="password" required><br><br>
|
19 |
|
20 |
+
|
21 |
+
<!-- Hidden field for the reCAPTCHA token -->
|
22 |
+
<input type="hidden" id="recaptcha_token" name="recaptcha_token" value="">
|
23 |
<div class="g-recaptcha"
|
24 |
data-sitekey="6LeSJgwpAAAAAD9UlPdC911k8UgD6Uh3068xXgGj"
|
25 |
data-callback="setRecaptchaToken">
|
26 |
+
<button type="submit">Login</button>
|
27 |
</div>
|
28 |
</form>
|
29 |
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
|
|
39 |
if (!(token && email && password)) {
|
40 |
event.preventDefault(); // Prevent form submission
|
41 |
alert("Please fill in all required fields.");
|
42 |
+
}
|
43 |
// If fields are filled, form will proceed to submit
|
44 |
// reCAPTCHA validation will be handled automatically by Google's script
|
45 |
});
|