From 768b41153df673c0bf77eb2f79f643d4f9e118c2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 12 Jul 2018 09:21:35 -0400 Subject: [PATCH] change to secure note if not login --- src/importers/enpassCsvImporter.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); }