mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
limit ph import to 5 max
This commit is contained in:
parent
58c34b896c
commit
a884f77938
@ -46,6 +46,11 @@ export class BitwardenJsonImporter extends BaseImporter implements Importer {
|
|||||||
cipher.organizationId = null;
|
cipher.organizationId = null;
|
||||||
cipher.collectionIds = null;
|
cipher.collectionIds = null;
|
||||||
|
|
||||||
|
// make sure password history is limited
|
||||||
|
if (cipher.passwordHistory != null && cipher.passwordHistory.length > 5) {
|
||||||
|
cipher.passwordHistory = cipher.passwordHistory.slice(0, 5);
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.organization && c.folderId != null && groupingsMap.has(c.folderId)) {
|
if (!this.organization && c.folderId != null && groupingsMap.has(c.folderId)) {
|
||||||
result.folderRelationships.push([result.ciphers.length, groupingsMap.get(c.folderId)]);
|
result.folderRelationships.push([result.ciphers.length, groupingsMap.get(c.folderId)]);
|
||||||
} else if (this.organization && c.collectionIds != null) {
|
} else if (this.organization && c.collectionIds != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user