diff --git a/jslib b/jslib index abb54f0073..93a3053f54 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit abb54f007305eabd77996623dd20cbe45345e82a +Subproject commit 93a3053f54bb654e689962543a07573b4c090515 diff --git a/src/app/organizations/tools/export.component.ts b/src/app/organizations/tools/export.component.ts index 03ba69e5ac..946b543988 100644 --- a/src/app/organizations/tools/export.component.ts +++ b/src/app/organizations/tools/export.component.ts @@ -16,8 +16,6 @@ import { EventType } from 'jslib/enums/eventType'; templateUrl: '../../tools/export.component.html', }) export class ExportComponent extends BaseExportComponent { - organizationId: string; - constructor(cryptoService: CryptoService, i18nService: I18nService, platformUtilsService: PlatformUtilsService, exportService: ExportService, eventService: EventService, private route: ActivatedRoute) { diff --git a/src/app/settings/change-password.component.ts b/src/app/settings/change-password.component.ts index b61a5dc588..c46b4fd4a7 100644 --- a/src/app/settings/change-password.component.ts +++ b/src/app/settings/change-password.component.ts @@ -69,6 +69,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent { const result = await this.platformUtilsService.showDialog( this.i18nService.t('updateEncryptionKeyWarning') + ' ' + + this.i18nService.t('updateEncryptionKeyExportWarning') + ' ' + this.i18nService.t('rotateEncKeyConfirmation'), this.i18nService.t('rotateEncKeyTitle'), this.i18nService.t('yes'), this.i18nService.t('no'), 'warning'); if (!result) { diff --git a/src/app/tools/export.component.html b/src/app/tools/export.component.html index 3d1e4c1bc1..239db5a296 100644 --- a/src/app/tools/export.component.html +++ b/src/app/tools/export.component.html @@ -3,13 +3,16 @@

{{'exportVault' | i18n}}

{{'exportMasterPassword' | i18n}}

- {{'exportWarningDesc' | i18n}} + {{'exportWarningDesc' | i18n}} + {{'encExportWarningDesc' | i18n}} +
diff --git a/src/app/tools/export.component.ts b/src/app/tools/export.component.ts index be3b84cb64..9d43a7674b 100644 --- a/src/app/tools/export.component.ts +++ b/src/app/tools/export.component.ts @@ -13,6 +13,8 @@ import { ExportComponent as BaseExportComponent } from 'jslib/angular/components templateUrl: 'export.component.html', }) export class ExportComponent extends BaseExportComponent { + organizationId: string; + constructor(cryptoService: CryptoService, i18nService: I18nService, platformUtilsService: PlatformUtilsService, exportService: ExportService, eventService: EventService) { diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index 35ab61958c..b09ec404e7 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -793,6 +793,9 @@ "exportWarningDesc": { "message": "This export contains your vault data in an unencrypted format. You should not store or send the exported file over unsecure channels (such as email). Delete it immediately after you are done using it." }, + "encExportWarningDesc": { + "message": "This export encrypts your data using your account's encryption key. If you ever rotate your account's encryption key you should export again since you will not be able to decrypt this export file." + }, "exportMasterPassword": { "message": "Enter your master password to export your vault data." }, @@ -2786,6 +2789,9 @@ "updateEncryptionKeyWarning": { "message": "After updating your encryption key, you are required to log out and back in to all Bitwarden applications that you are currently using (such as the mobile app or browser extensions). Failure to log out and back in (which downloads your new encryption key) may result in data corruption. We will attempt to log you out automatically, however, it may be delayed." }, + "updateEncryptionKeyExportWarning": { + "message": "Any encrypted exports that you have saved will also become invalid." + }, "subscription": { "message": "Subscription" },