diff --git a/libs/importer/src/importers/logmeonce-csv-importer.ts b/libs/importer/src/importers/logmeonce-csv-importer.ts index a8a9e7bcad3..d617bc11216 100644 --- a/libs/importer/src/importers/logmeonce-csv-importer.ts +++ b/libs/importer/src/importers/logmeonce-csv-importer.ts @@ -12,17 +12,22 @@ export class LogMeOnceCsvImporter extends BaseImporter implements Importer { return Promise.resolve(result); } - results.forEach((value) => { - if (value.length < 4) { + results.forEach((value, index) => { + if (value.length < 7) { return; } - const cipher = this.initLoginCipher(); - cipher.name = this.getValueOrDefault(value[0], "--"); - cipher.login.username = this.getValueOrDefault(value[2]); - cipher.login.password = this.getValueOrDefault(value[3]); - cipher.login.uris = this.makeUriArray(value[1]); - this.cleanupCipher(cipher); - result.ciphers.push(cipher); + + if (index !== 0) { + const cipher = this.initLoginCipher(); + cipher.name = this.getValueOrDefault(value[0], "--"); + cipher.login.uris = this.makeUriArray(value[1]); + cipher.notes = this.getValueOrDefault(value[2]); + cipher.login.username = this.getValueOrDefault(value[4]); + cipher.login.password = this.getValueOrDefault(value[5]); + + this.cleanupCipher(cipher); + result.ciphers.push(cipher); + } }); result.success = true;