zoho import password header chnges (#69)

* zoho import password header chnges

* support for both import format
This commit is contained in:
balagurusurendar 2020-02-11 16:49:39 +05:30 committed by GitHub
parent fd260dfbae
commit fea1c9ada4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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);