diff --git a/src/popup/app/vault/vaultViewCipherController.js b/src/popup/app/vault/vaultViewCipherController.js index 017bb5f0a5..a91ff2e5ba 100644 --- a/src/popup/app/vault/vaultViewCipherController.js +++ b/src/popup/app/vault/vaultViewCipherController.js @@ -21,7 +21,7 @@ angular cipherObj = cipher; return cipher.decrypt(); }).then(function (model) { - $timeout(function() { + $timeout(function () { $scope.cipher = model; if (model.login && model.login.totp && (cipherObj.organizationUseTotp || tokenService.getPremium())) { totpUpdateCode(); @@ -159,6 +159,10 @@ angular return year; }; + $scope.maskValue = function (value) { + return value ? '••••••••' : null; + }; + function totpUpdateCode() { if ($scope.cipher.type !== constantsService.cipherType.login || !$scope.cipher.login.totp) { return; diff --git a/src/popup/app/vault/views/vaultViewCipher.html b/src/popup/app/vault/views/vaultViewCipher.html index fd5f813072..b3470e31cb 100644 --- a/src/popup/app/vault/views/vaultViewCipher.html +++ b/src/popup/app/vault/views/vaultViewCipher.html @@ -45,7 +45,7 @@ {{i18n.password}} - {{cipher.login.maskedPassword}} + {{maskValue(cipher.login.password)}} {{cipher.login.password}}