1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-24 16:43:27 +00:00

Filter available cipher results

This commit is contained in:
Jeffrey Holland
2025-04-22 13:20:22 +02:00
parent e4221d4d56
commit b811e67f86

View File

@@ -93,7 +93,12 @@ export class Fido2CreateComponent implements OnInit, OnDestroy {
const credentialId = cipher.login.hasFido2Credentials
? parseCredentialId(cipher.login.fido2Credentials[0]?.credentialId)
: new Uint8Array();
if (!cipher.login || !cipher.login.hasUris) {
if (
!cipher.login ||
!cipher.login.hasUris ||
cipher.deletedDate ||
cipher.login.username != lastRegistrationRequest.userName
) {
return false;
}
@@ -113,7 +118,12 @@ export class Fido2CreateComponent implements OnInit, OnDestroy {
const credentialId = cipher.login.hasFido2Credentials
? Array.from(parseCredentialId(cipher.login.fido2Credentials[0]?.credentialId))
: [];
if (!cipher.login || !cipher.login.hasUris) {
if (
!cipher.login ||
!cipher.login.hasUris ||
cipher.deletedDate ||
cipher.login.username != lastRegistrationRequest.userName
) {
return false;
}