mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
zoho import password header chnges (#69)
* zoho import password header chnges * support for both import format
This commit is contained in:
@@ -14,15 +14,15 @@ export class ZohoVaultCsvImporter extends BaseImporter implements Importer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
results.forEach((value) => {
|
results.forEach((value) => {
|
||||||
if (this.isNullOrWhitespace(value['Secret Name'])) {
|
if (this.isNullOrWhitespace(value['Password Name']) && this.isNullOrWhitespace(value['Secret Name'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.processFolder(result, this.getValueOrDefault(value.ChamberName));
|
this.processFolder(result, this.getValueOrDefault(value.ChamberName));
|
||||||
const cipher = this.initLoginCipher();
|
const cipher = this.initLoginCipher();
|
||||||
cipher.favorite = this.getValueOrDefault(value.Favorite, '0') === '1';
|
cipher.favorite = this.getValueOrDefault(value.Favorite, '0') === '1';
|
||||||
cipher.notes = this.getValueOrDefault(value.Notes);
|
cipher.notes = this.getValueOrDefault(value.Notes);
|
||||||
cipher.name = this.getValueOrDefault(value['Secret Name'], '--');
|
cipher.name = this.getValueOrDefault(value['Password Name'], this.getValueOrDefault(value['Secret Name'], '--'));
|
||||||
cipher.login.uris = this.makeUriArray(value['Secret URL']);
|
cipher.login.uris = this.makeUriArray(this.getValueOrDefault(value['Password URL'], this.getValueOrDefault(value['Secret URL'])));
|
||||||
this.parseData(cipher, value.SecretData);
|
this.parseData(cipher, value.SecretData);
|
||||||
this.parseData(cipher, value.CustomData);
|
this.parseData(cipher, value.CustomData);
|
||||||
this.convertToNoteIfNeeded(cipher);
|
this.convertToNoteIfNeeded(cipher);
|
||||||
|
|||||||
Reference in New Issue
Block a user