From eae845d900ca6c167d7e1ec7701e82b4beb03c47 Mon Sep 17 00:00:00 2001 From: Jonathan Prusik Date: Fri, 12 Jan 2024 22:35:30 -0500 Subject: [PATCH] [PM-4260] [BEEEP] Mask TOTP seeds in cipher edit view - similar to how the password is hidden (#6649) * PoC disallow changing masked values in edit mode and mask TOTP with password * toggle totp seed visibility independently from password visibility in edit mode * cleanup * add fallback value for when a cipher returns a null value for maskedPassword * toggle masks off for maskable login properties with no value on load * do not show mask toggle for password or totp if no value is present --- .../components/vault/add-edit.component.html | 31 ++++++++++++++++--- .../vault/components/add-edit.component.ts | 28 ++++++++++++++++- libs/common/src/enums/event-type.enum.ts | 1 + 3 files changed, 54 insertions(+), 6 deletions(-) diff --git a/apps/browser/src/vault/popup/components/vault/add-edit.component.html b/apps/browser/src/vault/popup/components/vault/add-edit.component.html index 33f3fc3a4f..4fbdac5cbf 100644 --- a/apps/browser/src/vault/popup/components/vault/add-edit.component.html +++ b/apps/browser/src/vault/popup/components/vault/add-edit.component.html @@ -70,15 +70,18 @@
+
+ {{ cipher.login.maskedPassword || "••••••••" }} +
+