diff --git a/jslib b/jslib index abb54f00..93a3053f 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 03ba69e5..946b5439 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 b61a5dc5..c46b4fd4 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 3d1e4c1b..239db5a2 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 be3b84cb..9d43a767 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 35ab6195..b09ec404 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" },