diff --git a/src/importers/enpassCsvImporter.ts b/src/importers/enpassCsvImporter.ts index 9be4c0c883..5ce49d6d2e 100644 --- a/src/importers/enpassCsvImporter.ts +++ b/src/importers/enpassCsvImporter.ts @@ -29,13 +29,14 @@ export class EnpassCsvImporter extends BaseImporter implements Importer { cipher.notes = this.getValueOrDefault(value[value.length - 1]); cipher.name = this.getValueOrDefault(value[0], '--'); - if (value.length === 2) { + if (value.length === 2 || (value.indexOf('Username') < 0 && value.indexOf('Password') < 0 && + value.indexOf('Email') && value.indexOf('URL') < 0)) { cipher.type = CipherType.SecureNote; cipher.secureNote = new SecureNoteView(); cipher.secureNote.type = SecureNoteType.Generic; } - if (value.indexOf('Cardholder') > -1 && value.indexOf('Number') > -1 && value.indexOf('Expiry date')) { + if (value.indexOf('Cardholder') > -1 && value.indexOf('Number') > -1 && value.indexOf('Expiry date') > -1) { cipher.type = CipherType.Card; cipher.card = new CardView(); }