mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-15 01:11:47 +01:00
PM-1049 - Login Initiated route can only be accessed if user is AuthN w/ locked vault + TDE feature flag is on.
This commit is contained in:
parent
aaf771bbdb
commit
f1c6fb2d76
@ -4,6 +4,8 @@ import { Route, RouterModule, Routes } from "@angular/router";
|
||||
import { AuthGuard } from "@bitwarden/angular/auth/guards/auth.guard";
|
||||
import { LockGuard } from "@bitwarden/angular/auth/guards/lock.guard";
|
||||
import { UnauthGuard } from "@bitwarden/angular/auth/guards/unauth.guard";
|
||||
import { canAccessFeature } from "@bitwarden/angular/guard/feature-flag.guard";
|
||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||
|
||||
import { SubscriptionRoutingModule } from "../app/billing/settings/subscription-routing.module";
|
||||
import { flagEnabled, Flags } from "../utils/flags";
|
||||
@ -69,7 +71,7 @@ const routes: Routes = [
|
||||
{
|
||||
path: "login-initiated",
|
||||
component: LoginDecryptionOptionsComponent,
|
||||
canActivate: [], // TODO: put UnauthGuard back here
|
||||
canActivate: [LockGuard, canAccessFeature(FeatureFlag.TrustedDeviceEncryption)],
|
||||
},
|
||||
{
|
||||
path: "register",
|
||||
|
Loading…
Reference in New Issue
Block a user