Session handling bugfix, profile frontend WIP

This commit is contained in:
2024-04-06 11:52:22 +02:00
parent b68ff85578
commit fe81e0f6fa
14 changed files with 422 additions and 470 deletions

View File

@@ -47,9 +47,10 @@ export default class API {
}
let res = await response.json();
if (!res.success && res.msg === "You are not logged in.") {
if (!res.success && res.loggedIn === false) {
this.loggedIn = false;
this.user = null;
this.session = null;
}
return res;