This commit is contained in:
tiago.kayaya
2022-02-16 13:52:32 +01:00
parent de1f91935e
commit 170c5395a4
19 changed files with 93 additions and 183 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ export class AuthGuard implements CanActivate {
canActivate(
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
// if user not active
if(!SessionStore.user.Inactivity) {
this.router.navigate(['/']);
@@ -29,7 +29,7 @@ export class AuthGuard implements CanActivate {
this.router.navigate(['/']);
return false
} else {
this.authService.loginChat();
//this.authService.loginChat();
return true;
}
}