mirror of
https://github.com/bitwarden/browser
synced 2026-02-13 23:13:36 +00:00
Fixed import from LogMeOnce #11406
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user