diff options
Diffstat (limited to 'app/templates')
-rw-r--r-- | app/templates/login.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/templates/login.html b/app/templates/login.html index 1061699..bca8b63 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -91,11 +91,13 @@ const formData = new FormData(this); // Send POST request to /token containing form data - const response = await fetch('/token', { + const response = await fetch('/api/auth/token', { method: 'POST', body: formData }); + console.log(await response.json()); + if (response.status != 200) { document.getElementById('error').style.display = 'block'; } else { |