add synchro

This commit is contained in:
Peter Maquiran
2021-08-30 10:24:46 +01:00
parent e953831a73
commit 4309d01376
24 changed files with 338 additions and 113 deletions
+4 -1
View File
@@ -17,7 +17,10 @@ export class AuthGuard implements CanActivate {
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
if(window.location.pathname != '' && !SessionStore.exist) {
if(!SessionStore.user.Inactivity) {
this.router.navigate(['/inactivity']);
}
else if(window.location.pathname != '' && !SessionStore.exist) {
this.router.navigate(['/']);
return false
} else {