From d30d0f7b6effd76c6ee21dc3176d1f7d71b8a70f Mon Sep 17 00:00:00 2001 From: fd303az Date: Tue, 8 Oct 2024 00:12:16 +0200 Subject: [PATCH] Fixed import from LogMeOnce #11406 --- .../src/importers/logmeonce-csv-importer.ts | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) 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;