mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
Remove checks of device verification flags on client (#13604)
This commit is contained in:
@@ -17,7 +17,6 @@ import {
|
|||||||
tdeDecryptionRequiredGuard,
|
tdeDecryptionRequiredGuard,
|
||||||
unauthGuardFn,
|
unauthGuardFn,
|
||||||
} from "@bitwarden/angular/auth/guards";
|
} from "@bitwarden/angular/auth/guards";
|
||||||
import { canAccessFeature } from "@bitwarden/angular/platform/guard/feature-flag.guard";
|
|
||||||
import { NewDeviceVerificationNoticeGuard } from "@bitwarden/angular/vault/guards";
|
import { NewDeviceVerificationNoticeGuard } from "@bitwarden/angular/vault/guards";
|
||||||
import {
|
import {
|
||||||
AnonLayoutWrapperComponent,
|
AnonLayoutWrapperComponent,
|
||||||
@@ -45,7 +44,6 @@ import {
|
|||||||
UserLockIcon,
|
UserLockIcon,
|
||||||
VaultIcon,
|
VaultIcon,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
|
||||||
import { LockComponent } from "@bitwarden/key-management-ui";
|
import { LockComponent } from "@bitwarden/key-management-ui";
|
||||||
import {
|
import {
|
||||||
NewDeviceVerificationNoticePageOneComponent,
|
NewDeviceVerificationNoticePageOneComponent,
|
||||||
@@ -245,11 +243,7 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: "device-verification",
|
path: "device-verification",
|
||||||
component: ExtensionAnonLayoutWrapperComponent,
|
component: ExtensionAnonLayoutWrapperComponent,
|
||||||
canActivate: [
|
canActivate: [unauthGuardFn(), activeAuthGuard()],
|
||||||
canAccessFeature(FeatureFlag.NewDeviceVerification),
|
|
||||||
unauthGuardFn(),
|
|
||||||
activeAuthGuard(),
|
|
||||||
],
|
|
||||||
children: [{ path: "", component: NewDeviceVerificationComponent }],
|
children: [{ path: "", component: NewDeviceVerificationComponent }],
|
||||||
data: {
|
data: {
|
||||||
pageIcon: DeviceVerificationIcon,
|
pageIcon: DeviceVerificationIcon,
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import {
|
|||||||
tdeDecryptionRequiredGuard,
|
tdeDecryptionRequiredGuard,
|
||||||
unauthGuardFn,
|
unauthGuardFn,
|
||||||
} from "@bitwarden/angular/auth/guards";
|
} from "@bitwarden/angular/auth/guards";
|
||||||
import { canAccessFeature } from "@bitwarden/angular/platform/guard/feature-flag.guard";
|
|
||||||
import { NewDeviceVerificationNoticeGuard } from "@bitwarden/angular/vault/guards";
|
import { NewDeviceVerificationNoticeGuard } from "@bitwarden/angular/vault/guards";
|
||||||
import {
|
import {
|
||||||
AnonLayoutWrapperComponent,
|
AnonLayoutWrapperComponent,
|
||||||
@@ -43,7 +42,6 @@ import {
|
|||||||
NewDeviceVerificationComponent,
|
NewDeviceVerificationComponent,
|
||||||
DeviceVerificationIcon,
|
DeviceVerificationIcon,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
|
||||||
import { LockComponent } from "@bitwarden/key-management-ui";
|
import { LockComponent } from "@bitwarden/key-management-ui";
|
||||||
import {
|
import {
|
||||||
NewDeviceVerificationNoticePageOneComponent,
|
NewDeviceVerificationNoticePageOneComponent,
|
||||||
@@ -123,11 +121,7 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: "device-verification",
|
path: "device-verification",
|
||||||
component: AnonLayoutWrapperComponent,
|
component: AnonLayoutWrapperComponent,
|
||||||
canActivate: [
|
canActivate: [unauthGuardFn(), activeAuthGuard()],
|
||||||
canAccessFeature(FeatureFlag.NewDeviceVerification),
|
|
||||||
unauthGuardFn(),
|
|
||||||
activeAuthGuard(),
|
|
||||||
],
|
|
||||||
children: [{ path: "", component: NewDeviceVerificationComponent }],
|
children: [{ path: "", component: NewDeviceVerificationComponent }],
|
||||||
data: {
|
data: {
|
||||||
pageIcon: DeviceVerificationIcon,
|
pageIcon: DeviceVerificationIcon,
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import {
|
|||||||
unauthGuardFn,
|
unauthGuardFn,
|
||||||
activeAuthGuard,
|
activeAuthGuard,
|
||||||
} from "@bitwarden/angular/auth/guards";
|
} from "@bitwarden/angular/auth/guards";
|
||||||
import { canAccessFeature } from "@bitwarden/angular/platform/guard/feature-flag.guard";
|
|
||||||
import { NewDeviceVerificationNoticeGuard } from "@bitwarden/angular/vault/guards";
|
import { NewDeviceVerificationNoticeGuard } from "@bitwarden/angular/vault/guards";
|
||||||
import {
|
import {
|
||||||
AnonLayoutWrapperComponent,
|
AnonLayoutWrapperComponent,
|
||||||
@@ -42,7 +41,6 @@ import {
|
|||||||
NewDeviceVerificationComponent,
|
NewDeviceVerificationComponent,
|
||||||
DeviceVerificationIcon,
|
DeviceVerificationIcon,
|
||||||
} from "@bitwarden/auth/angular";
|
} from "@bitwarden/auth/angular";
|
||||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
|
||||||
import { LockComponent } from "@bitwarden/key-management-ui";
|
import { LockComponent } from "@bitwarden/key-management-ui";
|
||||||
import {
|
import {
|
||||||
NewDeviceVerificationNoticePageOneComponent,
|
NewDeviceVerificationNoticePageOneComponent,
|
||||||
@@ -611,11 +609,7 @@ const routes: Routes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "device-verification",
|
path: "device-verification",
|
||||||
canActivate: [
|
canActivate: [unauthGuardFn(), activeAuthGuard()],
|
||||||
canAccessFeature(FeatureFlag.NewDeviceVerification),
|
|
||||||
unauthGuardFn(),
|
|
||||||
activeAuthGuard(),
|
|
||||||
],
|
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: "",
|
path: "",
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ export enum FeatureFlag {
|
|||||||
PrivateKeyRegeneration = "pm-12241-private-key-regeneration",
|
PrivateKeyRegeneration = "pm-12241-private-key-regeneration",
|
||||||
ResellerManagedOrgAlert = "PM-15814-alert-owners-of-reseller-managed-orgs",
|
ResellerManagedOrgAlert = "PM-15814-alert-owners-of-reseller-managed-orgs",
|
||||||
AccountDeprovisioningBanner = "pm-17120-account-deprovisioning-admin-console-banner",
|
AccountDeprovisioningBanner = "pm-17120-account-deprovisioning-admin-console-banner",
|
||||||
NewDeviceVerification = "new-device-verification",
|
|
||||||
PM15179_AddExistingOrgsFromProviderPortal = "pm-15179-add-existing-orgs-from-provider-portal",
|
PM15179_AddExistingOrgsFromProviderPortal = "pm-15179-add-existing-orgs-from-provider-portal",
|
||||||
RecoveryCodeLogin = "pm-17128-recovery-code-login",
|
RecoveryCodeLogin = "pm-17128-recovery-code-login",
|
||||||
PM12276_BreadcrumbEventLogs = "pm-12276-breadcrumbing-for-business-features",
|
PM12276_BreadcrumbEventLogs = "pm-12276-breadcrumbing-for-business-features",
|
||||||
@@ -104,7 +103,6 @@ export const DefaultFeatureFlagValue = {
|
|||||||
[FeatureFlag.PrivateKeyRegeneration]: FALSE,
|
[FeatureFlag.PrivateKeyRegeneration]: FALSE,
|
||||||
[FeatureFlag.ResellerManagedOrgAlert]: FALSE,
|
[FeatureFlag.ResellerManagedOrgAlert]: FALSE,
|
||||||
[FeatureFlag.AccountDeprovisioningBanner]: FALSE,
|
[FeatureFlag.AccountDeprovisioningBanner]: FALSE,
|
||||||
[FeatureFlag.NewDeviceVerification]: FALSE,
|
|
||||||
[FeatureFlag.PM15179_AddExistingOrgsFromProviderPortal]: FALSE,
|
[FeatureFlag.PM15179_AddExistingOrgsFromProviderPortal]: FALSE,
|
||||||
[FeatureFlag.RecoveryCodeLogin]: FALSE,
|
[FeatureFlag.RecoveryCodeLogin]: FALSE,
|
||||||
[FeatureFlag.PM12276_BreadcrumbEventLogs]: FALSE,
|
[FeatureFlag.PM12276_BreadcrumbEventLogs]: FALSE,
|
||||||
|
|||||||
Reference in New Issue
Block a user