1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-26 05:03:33 +00:00

[EC-142] Fix error during import of 1pux containing new email field format (#758)

* Add support for complex email field type

* Ensure complex email field type gets imported on identities
This commit is contained in:
Daniel James Smith
2022-04-06 17:33:43 +02:00
committed by GitHub
parent 5f4a8c18fe
commit 3b9ef68f4b
8 changed files with 405 additions and 13 deletions

View File

@@ -344,7 +344,10 @@ export const SanitizedExport: ExportData = {
title: "",
id: "irpvnshg5kjpkmj5jwy4xxkfom",
value: {
email: "plexuser@nullvalue.test",
email: {
email_address: "plexuser@nullvalue.test",
provider: null,
},
},
indexAtSource: 0,
guarded: false,
@@ -1434,7 +1437,10 @@ export const SanitizedExport: ExportData = {
title: "registered email",
id: "reg_email",
value: {
email: "kriddler@nullvalue.test",
email: {
email_address: "kriddler@nullvalue.test",
provider: null,
},
},
indexAtSource: 1,
guarded: false,
@@ -1536,7 +1542,10 @@ export const SanitizedExport: ExportData = {
title: "support email",
id: "support_email",
value: {
email: "support@nullvalue.test",
email: {
email_address: "support@nullvalue.test",
provider: null,
},
},
indexAtSource: 4,
guarded: false,
@@ -4014,7 +4023,10 @@ export const SanitizedExport: ExportData = {
title: "registered email",
id: "reg_email",
value: {
email: "",
email: {
email_address: "",
provider: null,
},
},
indexAtSource: 1,
guarded: false,
@@ -4116,7 +4128,10 @@ export const SanitizedExport: ExportData = {
title: "support email",
id: "support_email",
value: {
email: "",
email: {
email_address: "",
provider: null,
},
},
indexAtSource: 4,
guarded: false,