mirror of
https://github.com/bitwarden/browser
synced 2026-02-28 02:23:25 +00:00
don't fallback to empty string in login export
This commit is contained in:
@@ -43,11 +43,11 @@ export class LoginExport {
|
||||
return domain;
|
||||
}
|
||||
|
||||
uris: LoginUriExport[] = [];
|
||||
username: string = "";
|
||||
password: string = "";
|
||||
totp: string = "";
|
||||
fido2Credentials: Fido2CredentialExport[] = [];
|
||||
uris?: LoginUriExport[];
|
||||
username?: string;
|
||||
password?: string;
|
||||
totp?: string;
|
||||
fido2Credentials?: Fido2CredentialExport[];
|
||||
|
||||
constructor(o?: LoginView | LoginDomain) {
|
||||
if (o == null) {
|
||||
@@ -62,8 +62,8 @@ export class LoginExport {
|
||||
this.fido2Credentials = o.fido2Credentials.map((key) => new Fido2CredentialExport(key));
|
||||
}
|
||||
|
||||
this.username = safeGetString(o.username) ?? "";
|
||||
this.password = safeGetString(o.password) ?? "";
|
||||
this.totp = safeGetString(o.totp) ?? "";
|
||||
this.username = safeGetString(o.username);
|
||||
this.password = safeGetString(o.password);
|
||||
this.totp = safeGetString(o.totp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user