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:
committed by
GitHub
parent
3abb1c9a3b
commit
24d9ac88ba
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user