diff --git a/src/app/home/home-routing.module.ts b/src/app/home/home-routing.module.ts index 014635651..564db5b3e 100644 --- a/src/app/home/home-routing.module.ts +++ b/src/app/home/home-routing.module.ts @@ -382,6 +382,16 @@ const routes: Routes = [ ], canActivate: [InactivityGuard] }, + { + path: 'login', + children: [ + { + path:'', + loadChildren: ()=> import('../pages/inactivity/inactivity.module').then(m => m.InactivityPageModule) + }, + ], + canActivate: [InactivityGuard] + }, { path: 'pin', children: [ diff --git a/src/app/modals/profile/profile.page.ts b/src/app/modals/profile/profile.page.ts index 6f77c2f10..33ec61cff 100644 --- a/src/app/modals/profile/profile.page.ts +++ b/src/app/modals/profile/profile.page.ts @@ -222,7 +222,7 @@ export class ProfilePage implements OnInit { SessionStore.setInativity(false) setTimeout(() => { - this.router.navigate(['/inactivity']); + this.router.navigate(['/login']); }, 100) }