bug squah
parent
dc63fcdc3e
commit
54fab32116
2
login.js
2
login.js
|
@ -9,7 +9,7 @@ form.addEventListener("submit", async function(event) {
|
||||||
uname = formData.get('uname');
|
uname = formData.get('uname');
|
||||||
pin = formData.get('pin');
|
pin = formData.get('pin');
|
||||||
|
|
||||||
const response = await fetch(`/users/${uname}/${pin}`);
|
const response = await fetch(`/api/users/${uname}/${pin}`);
|
||||||
const loginInfo = await response.json();
|
const loginInfo = await response.json();
|
||||||
|
|
||||||
if (loginInfo.status === "ok") {
|
if (loginInfo.status === "ok") {
|
||||||
|
|
Loading…
Reference in New Issue