Update templates/register.html
Browse files- templates/register.html +3 -1
templates/register.html
CHANGED
@@ -12,8 +12,9 @@
|
|
12 |
var email = document.getElementById('email').value;
|
13 |
var password = document.getElementById('password').value;
|
14 |
var confirmPassword = document.getElementById('confirm_password').value;
|
|
|
15 |
|
16 |
-
if (username && email && password && confirmPassword) {
|
17 |
// If the form is valid, trigger reCAPTCHA
|
18 |
grecaptcha.execute();
|
19 |
} else {
|
@@ -22,6 +23,7 @@
|
|
22 |
});
|
23 |
function onSubmit(token) {
|
24 |
document.getElementById("registration-form").submit();
|
|
|
25 |
}
|
26 |
</script>
|
27 |
</head>
|
|
|
12 |
var email = document.getElementById('email').value;
|
13 |
var password = document.getElementById('password').value;
|
14 |
var confirmPassword = document.getElementById('confirm_password').value;
|
15 |
+
var recaptcha_token = document.getElementById('recaptcha_token').value;
|
16 |
|
17 |
+
if (username && email && password && confirmPassword && recaptcha_token) {
|
18 |
// If the form is valid, trigger reCAPTCHA
|
19 |
grecaptcha.execute();
|
20 |
} else {
|
|
|
23 |
});
|
24 |
function onSubmit(token) {
|
25 |
document.getElementById("registration-form").submit();
|
26 |
+
|
27 |
}
|
28 |
</script>
|
29 |
</head>
|