Fix login errors
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user