mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-21 22:40:34 -04:00
Solving a small bug
This commit is contained in:
parent
ea651dd593
commit
7c8c4382b8
@ -28,7 +28,7 @@ export class AuthService
|
|||||||
this.isAuthenticated = authorizationResult.authorizationState == AuthorizationState.authorized;
|
this.isAuthenticated = authorizationResult.authorizationState == AuthorizationState.authorized;
|
||||||
this.router.navigate(["/"]);
|
this.router.navigate(["/"]);
|
||||||
});
|
});
|
||||||
|
this.getUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
getUser()
|
getUser()
|
||||||
@ -38,11 +38,6 @@ export class AuthService
|
|||||||
this.user = userData;
|
this.user = userData;
|
||||||
console.log("Got user data");
|
console.log("Got user data");
|
||||||
console.log(this.user);
|
console.log(this.user);
|
||||||
// this.zone.run(() =>
|
|
||||||
// {
|
|
||||||
// this.user = userData;
|
|
||||||
// this.isAuthenticated = userData !== undefined;
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user