Fix login errors

This commit is contained in:
2025-07-31 18:36:44 -07:00
parent 50aadeeecf
commit 31708cdb15
2 changed files with 2 additions and 2 deletions
@@ -31,7 +31,7 @@ export class Authentication{
}
get isLoggedIn(): boolean {
return this._user.value.id != -1 ? true : false;
return this._user.value.id == null ? true : false;
}
get loggedInUser(): Account {
@@ -43,7 +43,7 @@ namespace BoredCareers.Controllers {
signOut();
return Redirect("/");
}
return NotFound();
return NotFound("Not logged in");
}
}