1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

Use lockGuardService to prevent back navigation

This commit is contained in:
Thomas Rittson
2021-06-07 08:59:02 +10:00
parent c0f7251d77
commit 1e998094df
2 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import {
} from '@angular/router';
import { AuthGuardService } from 'jslib/angular/services/auth-guard.service';
import { LockGuardService } from 'jslib/angular/services/lock-guard.service';
import { LaunchGuardService } from './services/launch-guard.service';
@@ -76,6 +77,7 @@ const routes: Routes = [
{
path: 'lock',
component: LockComponent,
canActivate: [LockGuardService],
data: { state: 'lock' },
},
{