Update templates/register.html
Browse files- templates/register.html +2 -10
templates/register.html
CHANGED
@@ -69,18 +69,10 @@
|
|
69 |
// If fields are filled, form will proceed to submit
|
70 |
// reCAPTCHA validation will be handled automatically by Google's script
|
71 |
});
|
|
|
72 |
fetch('/register', {
|
73 |
method: 'POST',
|
74 |
-
|
75 |
-
'Content-Type': 'application/json'
|
76 |
-
},
|
77 |
-
body: JSON.stringify({
|
78 |
-
username: username,
|
79 |
-
email: email,
|
80 |
-
password: password,
|
81 |
-
confirm_password: confirmPassword,
|
82 |
-
recaptcha_token: token
|
83 |
-
})
|
84 |
})
|
85 |
.then(response => response.json())
|
86 |
.then(data => {
|
|
|
69 |
// If fields are filled, form will proceed to submit
|
70 |
// reCAPTCHA validation will be handled automatically by Google's script
|
71 |
});
|
72 |
+
var formData = new FormData(this);
|
73 |
fetch('/register', {
|
74 |
method: 'POST',
|
75 |
+
body: formData)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
})
|
77 |
.then(response => response.json())
|
78 |
.then(data => {
|