diff options
author | Parker <contact@pkrm.dev> | 2024-11-05 15:02:21 -0600 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-11-05 15:02:21 -0600 |
commit | 6f7e810916fd2de39d451886bbe18167e1784315 (patch) | |
tree | 795523eb94a00bce41475e444bab60487b31daab /app/templates | |
parent | d74ae5e11603c33a5deafbcdc202fd13e57cfe0a (diff) |
stuff
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 { |