mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
Fix totp import on Dashlane csv importer (#11747)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
88cbee9b0a
commit
913f109ffa
@@ -119,7 +119,7 @@ export class DashlaneCsvImporter extends BaseImporter implements Importer {
|
||||
cipher.notes = row.note;
|
||||
cipher.login.username = row.username;
|
||||
cipher.login.password = row.password;
|
||||
cipher.login.totp = row.otpSecret;
|
||||
cipher.login.totp = Object.keys(row).includes("otpUrl") ? row.otpUrl : row.otpSecret;
|
||||
cipher.login.uris = this.makeUriArray(row.url);
|
||||
|
||||
this.importUnmappedFields(cipher, row, _mappedCredentialsColumns);
|
||||
|
||||
@@ -8,7 +8,8 @@ export class CredentialsRecord {
|
||||
note: string;
|
||||
url: string;
|
||||
category: string;
|
||||
otpSecret: string;
|
||||
otpSecret?: string;
|
||||
otpUrl?: string; // Likely introduced by Dashlane as a replacement for `otpSecret`
|
||||
}
|
||||
|
||||
export class PaymentsRecord {
|
||||
|
||||
Reference in New Issue
Block a user