1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +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

@@ -2062,9 +2062,6 @@
"rpName": { "rpName": {
"message": "Relying party" "message": "Relying party"
}, },
"origin": {
"message": "Origin"
},
"loginWithDevice": { "loginWithDevice": {
"message": "Log in with device" "message": "Log in with device"
}, },

View File

@@ -437,11 +437,6 @@
<span class="row-label">{{ "username" | i18n }}</span> <span class="row-label">{{ "username" | i18n }}</span>
{{ cipher.fido2Key.userName }} {{ cipher.fido2Key.userName }}
</div> </div>
<div class="box-content-row">
<span class="row-label">{{ "origin" | i18n }}</span>
{{ cipher.fido2Key.origin }}
</div>
</div> </div>
</div> </div>
</div> </div>

View File

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

View File

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

View File

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

View File

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