From 836dba3519e39c38d5b1ee09d8c7ee1c26ab9f98 Mon Sep 17 00:00:00 2001 From: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com> Date: Thu, 20 Oct 2022 16:47:58 -0400 Subject: [PATCH] adding encrypted export with password functionality to web/organizations (#3858) --- .../tools/import-export/org-export.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/organizations/tools/import-export/org-export.component.ts b/apps/web/src/app/organizations/tools/import-export/org-export.component.ts index 20b6690acd9..626b3ef2bc6 100644 --- a/apps/web/src/app/organizations/tools/import-export/org-export.component.ts +++ b/apps/web/src/app/organizations/tools/import-export/org-export.component.ts @@ -64,7 +64,11 @@ export class OrganizationExportComponent extends ExportComponent { } getExportData() { - return this.exportService.getOrganizationExport(this.organizationId, this.format); + if (this.isFileEncryptedExport) { + return this.exportService.getPasswordProtectedExport(this.filePassword, this.organizationId); + } else { + return this.exportService.getOrganizationExport(this.organizationId, this.format); + } } getFileName() {