Gregniuki commited on
Commit
aa173e1
1 Parent(s): a0b5637

Update templates/register.html

Browse files
Files changed (1) hide show
  1. templates/register.html +3 -1
templates/register.html CHANGED
@@ -52,12 +52,14 @@
52
  document.getElementById('recaptcha_token').value = token;
53
  }
54
  document.getElementById('registration-form').addEventListener('submit', function(event) {
 
55
  var username = document.getElementById('username').value;
 
56
  var email = document.getElementById('email').value;
57
  var password = document.getElementById('password').value;
58
  var confirmPassword = document.getElementById('confirm_password').value;
59
 
60
- if (!(username && email && password && confirmPassword)) {
61
  event.preventDefault(); // Prevent form submission
62
  alert("Please fill in all required fields.");
63
  }
 
52
  document.getElementById('recaptcha_token').value = token;
53
  }
54
  document.getElementById('registration-form').addEventListener('submit', function(event) {
55
+
56
  var username = document.getElementById('username').value;
57
+ var token = document.getElementById('recaptcha_token').value;
58
  var email = document.getElementById('email').value;
59
  var password = document.getElementById('password').value;
60
  var confirmPassword = document.getElementById('confirm_password').value;
61
 
62
+ if (!(token && username && email && password && confirmPassword)) {
63
  event.preventDefault(); // Prevent form submission
64
  alert("Please fill in all required fields.");
65
  }