diff --git a/src/Client/src/app/services/Authentication.ts b/src/Client/src/app/services/Authentication.ts index f653b1b..93bf139 100644 --- a/src/Client/src/app/services/Authentication.ts +++ b/src/Client/src/app/services/Authentication.ts @@ -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 { diff --git a/src/Server/Controllers/AuthenticationController.cs b/src/Server/Controllers/AuthenticationController.cs index 2a55b40..96180d4 100755 --- a/src/Server/Controllers/AuthenticationController.cs +++ b/src/Server/Controllers/AuthenticationController.cs @@ -43,7 +43,7 @@ namespace BoredCareers.Controllers { signOut(); return Redirect("/"); } - return NotFound(); + return NotFound("Not logged in"); } }