1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-9318] Fix username on protonpass import (#9889)

* Fix username field used for ProtonPass import

ProtonPass has changed their export format and userName is not itemEmail

* Import additional field itemUsername

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2024-07-08 22:45:02 +02:00
committed by GitHub
parent 6b122ca123
commit 83a32cd179
4 changed files with 14 additions and 7 deletions

View File

@@ -31,9 +31,12 @@ describe("Protonpass Json Importer", () => {
expect(uriView.uri).toEqual("https://example.com/");
expect(cipher.notes).toEqual("My login secure note.");
expect(cipher.fields.at(2).name).toEqual("second 2fa secret");
expect(cipher.fields.at(2).value).toEqual("TOTPCODE");
expect(cipher.fields.at(2).type).toEqual(FieldType.Hidden);
expect(cipher.fields.at(0).name).toEqual("itemUsername");
expect(cipher.fields.at(0).value).toEqual("someOtherUsername");
expect(cipher.fields.at(3).name).toEqual("second 2fa secret");
expect(cipher.fields.at(3).value).toEqual("TOTPCODE");
expect(cipher.fields.at(3).type).toEqual(FieldType.Hidden);
});
it("should parse note data", async () => {