1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00

[PM-1826] [PM-2168] [Tech debt] Migrate file-password-prompt to dialog (#5666)

* Migrate file-password-prompt to Dialog

* Fix issue with cancel/empty password returned

* Removed unneeded click handler to cancel dialog

* Added margin as requested by design

* Only apply margin to top of field

* Call submit when clicking on Import data

* Add form and and submit trigger
This commit is contained in:
Daniel James Smith
2023-06-29 21:59:17 +02:00
committed by GitHub
parent 3abb1c9a3b
commit 24d9ac88ba
4 changed files with 43 additions and 62 deletions

View File

@@ -62,6 +62,10 @@ export class BitwardenPasswordProtectedImporter extends BitwardenJsonImporter im
jdoc: BitwardenPasswordProtectedFileFormat,
password: string
): Promise<boolean> {
if (this.isNullOrWhitespace(password)) {
return false;
}
this.key = await this.cryptoService.makePinKey(
password,
jdoc.salt,