1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00:00

Fix: Add TOTP import support to KeePassX CSV importer (#11574)

KeePassX CSV importer was missing TOTP field support. Added logic to parse TOTP fields from the CSV and include them in the vault entries. Added unit tests to verify TOTP import functionality.
This commit is contained in:
Zilong Xue
2024-10-18 13:37:32 -05:00
committed by GitHub
parent 0e23f5e0cd
commit 81d1274111
3 changed files with 47 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ export class KeePassXCsvImporter extends BaseImporter implements Importer {
cipher.login.username = this.getValueOrDefault(value.Username);
cipher.login.password = this.getValueOrDefault(value.Password);
cipher.login.uris = this.makeUriArray(value.URL);
cipher.login.totp = this.getValueOrDefault(value.TOTP);
this.cleanupCipher(cipher);
result.ciphers.push(cipher);
});