1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

[EC-598] feat: remove orgigin

This commit is contained in:
Andreas Coroiu
2023-03-31 12:32:07 +02:00
parent 380e545c90
commit 1d9dde95b7
6 changed files with 1 additions and 15 deletions

View File

@@ -125,6 +125,7 @@ export class CipherRequest {
break;
case CipherType.Fido2Key:
this.fido2Key = new Fido2KeyApi();
this.fido2Key.nonDiscoverableId = cipher.fido2Key.nonDiscoverableId.encryptedString;
this.fido2Key.keyType =
cipher.fido2Key.keyType != null
? (cipher.fido2Key.keyType.encryptedString as "public-key")
@@ -147,8 +148,6 @@ export class CipherRequest {
cipher.fido2Key.userHandle != null ? cipher.fido2Key.userHandle.encryptedString : null;
this.fido2Key.userName =
cipher.fido2Key.userName != null ? cipher.fido2Key.userName.encryptedString : null;
this.fido2Key.origin =
cipher.fido2Key.origin != null ? cipher.fido2Key.origin.encryptedString : null;
break;
default:
break;

View File

@@ -13,7 +13,6 @@ export class Fido2KeyApi extends BaseResponse {
// Extras
rpName: string;
userName: string;
origin: string;
constructor(data: any = null) {
super(data);
@@ -31,6 +30,5 @@ export class Fido2KeyApi extends BaseResponse {
this.counter = this.getResponseProperty("Counter");
this.rpName = this.getResponseProperty("RpName");
this.userName = this.getResponseProperty("UserName");
this.origin = this.getResponseProperty("Origin");
}
}

View File

@@ -13,7 +13,6 @@ export class Fido2KeyData {
// Extras
rpName: string;
userName: string;
origin: string;
constructor(data?: Fido2KeyApi) {
if (data == null) {
@@ -30,6 +29,5 @@ export class Fido2KeyData {
this.counter = data.counter;
this.rpName = data.rpName;
this.userName = data.userName;
this.origin = data.origin;
}
}

View File

@@ -15,7 +15,6 @@ export class Fido2KeyView extends ItemView {
// Extras
rpName: string;
userName: string;
origin: string;
get subTitle(): string {
return this.userName;