1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-27 01:53:23 +00:00

[PM-23108] CLI Add Email Verification to Send Receive (#18649)

This commit is contained in:
John Harrington
2026-02-11 14:44:49 -07:00
committed by GitHub
parent f8976f992a
commit d7cca1bedf
4 changed files with 943 additions and 50 deletions

View File

@@ -39,6 +39,7 @@ import { AccountService } from "@bitwarden/common/auth/abstractions/account.serv
import { AvatarService as AvatarServiceAbstraction } from "@bitwarden/common/auth/abstractions/avatar.service";
import { DevicesApiServiceAbstraction } from "@bitwarden/common/auth/abstractions/devices-api.service.abstraction";
import { MasterPasswordApiService as MasterPasswordApiServiceAbstraction } from "@bitwarden/common/auth/abstractions/master-password-api.service.abstraction";
import { SendTokenService, DefaultSendTokenService } from "@bitwarden/common/auth/send-access";
import {
AccountServiceImplementation,
getUserId,
@@ -91,6 +92,8 @@ import { PinServiceAbstraction } from "@bitwarden/common/key-management/pin/pin.
import { PinService } from "@bitwarden/common/key-management/pin/pin.service.implementation";
import { SecurityStateService } from "@bitwarden/common/key-management/security-state/abstractions/security-state.service";
import { DefaultSecurityStateService } from "@bitwarden/common/key-management/security-state/services/security-state.service";
import { SendPasswordService } from "@bitwarden/common/key-management/sends/abstractions/send-password.service";
import { DefaultSendPasswordService } from "@bitwarden/common/key-management/sends/services/default-send-password.service";
import {
DefaultVaultTimeoutService,
DefaultVaultTimeoutSettingsService,
@@ -306,6 +309,8 @@ export class ServiceContainer {
userVerificationApiService: UserVerificationApiService;
organizationApiService: OrganizationApiServiceAbstraction;
sendApiService: SendApiService;
sendTokenService: SendTokenService;
sendPasswordService: SendPasswordService;
devicesApiService: DevicesApiServiceAbstraction;
deviceTrustService: DeviceTrustServiceAbstraction;
authRequestService: AuthRequestService;
@@ -629,6 +634,8 @@ export class ServiceContainer {
this.sendService,
);
this.sendPasswordService = new DefaultSendPasswordService(this.cryptoFunctionService);
this.searchService = new SearchService(this.logService, this.i18nService, this.stateProvider);
this.collectionService = new DefaultCollectionService(
@@ -675,6 +682,12 @@ export class ServiceContainer {
customUserAgent,
);
this.sendTokenService = new DefaultSendTokenService(
this.globalStateProvider,
this.sdkService,
this.sendPasswordService,
);
this.keyConnectorService = new KeyConnectorService(
this.accountService,
this.masterPasswordService,