mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Remove legacy key support in vault code (#15348)
This commit is contained in:
@@ -29,7 +29,7 @@ describe("AddEditFolderDialogComponent", () => {
|
||||
const save = jest.fn().mockResolvedValue(null);
|
||||
const deleteFolder = jest.fn().mockResolvedValue(null);
|
||||
const openSimpleDialog = jest.fn().mockResolvedValue(true);
|
||||
const getUserKeyWithLegacySupport = jest.fn().mockResolvedValue("");
|
||||
const getUserKey = jest.fn().mockResolvedValue("");
|
||||
const error = jest.fn();
|
||||
const close = jest.fn();
|
||||
const showToast = jest.fn();
|
||||
@@ -66,7 +66,7 @@ describe("AddEditFolderDialogComponent", () => {
|
||||
{
|
||||
provide: KeyService,
|
||||
useValue: {
|
||||
getUserKeyWithLegacySupport,
|
||||
getUserKey,
|
||||
},
|
||||
},
|
||||
{ provide: LogService, useValue: { error } },
|
||||
|
||||
@@ -121,7 +121,7 @@ export class AddEditFolderDialogComponent implements AfterViewInit, OnInit {
|
||||
|
||||
try {
|
||||
const activeUserId = await firstValueFrom(this.activeUserId$);
|
||||
const userKey = await this.keyService.getUserKeyWithLegacySupport(activeUserId!);
|
||||
const userKey = await this.keyService.getUserKey(activeUserId!);
|
||||
const folder = await this.folderService.encrypt(this.folder, userKey);
|
||||
await this.folderApiService.save(folder, activeUserId!);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user