1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Implement user requests autorizations in the client side

This commit is contained in:
Chocobozzz 2016-04-14 22:07:46 +02:00
parent 0c1cbbfe29
commit 1553e15d82
10 changed files with 122 additions and 33 deletions

View file

@ -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 => {