From 1553e15d82b8a1ec4967a90d43b33274f8215c44 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Apr 2016 22:07:46 +0200 Subject: Implement user requests autorizations in the client side --- client/angular/app/app.component.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'client/angular/app') diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts index 68c9ba009..da9959836 100644 --- a/client/angular/app/app.component.ts +++ b/client/angular/app/app.component.ts @@ -53,11 +53,7 @@ export class AppComponent { private _authService: AuthService, private _router: Router ) { - if (localStorage.getItem('access_token')) { - this.isLoggedIn = true; - } else { - this.isLoggedIn = false; - } + this.isLoggedIn = this._authService.isLoggedIn(); this._authService.loginChanged$.subscribe( status => { -- cgit v1.2.3