From fea1c9ada48978412f7b2705e07138ef6e812ce8 Mon Sep 17 00:00:00 2001 From: balagurusurendar Date: Tue, 11 Feb 2020 16:49:39 +0530 Subject: [PATCH] zoho import password header chnges (#69) * zoho import password header chnges * support for both import format --- src/importers/zohoVaultCsvImporter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/importers/zohoVaultCsvImporter.ts b/src/importers/zohoVaultCsvImporter.ts index f2cc12d1c11..3c86d4fa87d 100644 --- a/src/importers/zohoVaultCsvImporter.ts +++ b/src/importers/zohoVaultCsvImporter.ts @@ -14,15 +14,15 @@ export class ZohoVaultCsvImporter extends BaseImporter implements Importer { } results.forEach((value) => { - if (this.isNullOrWhitespace(value['Secret Name'])) { + if (this.isNullOrWhitespace(value['Password Name']) && this.isNullOrWhitespace(value['Secret Name'])) { return; } this.processFolder(result, this.getValueOrDefault(value.ChamberName)); const cipher = this.initLoginCipher(); cipher.favorite = this.getValueOrDefault(value.Favorite, '0') === '1'; cipher.notes = this.getValueOrDefault(value.Notes); - cipher.name = this.getValueOrDefault(value['Secret Name'], '--'); - cipher.login.uris = this.makeUriArray(value['Secret URL']); + cipher.name = this.getValueOrDefault(value['Password Name'], this.getValueOrDefault(value['Secret Name'], '--')); + cipher.login.uris = this.makeUriArray(this.getValueOrDefault(value['Password URL'], this.getValueOrDefault(value['Secret URL']))); this.parseData(cipher, value.SecretData); this.parseData(cipher, value.CustomData); this.convertToNoteIfNeeded(cipher);