fix vulnerabilities

This commit is contained in:
2026-05-05 11:38:09 +02:00
parent 418661119b
commit 76b0be8d06
4 changed files with 66 additions and 44 deletions
+3 -5
View File
@@ -14,8 +14,7 @@
});
if (loginRes.ok) {
const loginData = await loginRes.json();
document.cookie = `authorization=${loginData.token}`;
await loginRes.json();
showLoadingScreen("Login successful. Loading Lobby...");
return;
}
@@ -27,8 +26,7 @@
});
if (registerRes.ok) {
const registerData = await registerRes.json();
document.cookie = `authorization=${registerData.token}`;
await registerRes.json();
showLoadingScreen("Register successful. Loading Lobby...");
} else {
const error = await registerRes.json();
@@ -61,4 +59,4 @@
}
}, 200);
}
});
});