diff --git a/src/popup/app/vault/vaultViewSiteController.js b/src/popup/app/vault/vaultViewSiteController.js index 06496c6184..66cf9cd665 100644 --- a/src/popup/app/vault/vaultViewSiteController.js +++ b/src/popup/app/vault/vaultViewSiteController.js @@ -6,6 +6,15 @@ siteService.get($stateParams.siteId, function (site) { cipherService.decryptSite(site).then(function (model) { $scope.site = model; + + if (model.password) { + var maskedPassword = ''; + for (var i = 0; i < model.password.length; i++) { + maskedPassword += '•'; + } + + $scope.site.maskedPassword = maskedPassword; + } }); }); }); diff --git a/src/popup/app/vault/views/vaultViewSite.html b/src/popup/app/vault/views/vaultViewSite.html index 36e8e7fb9b..a48b029650 100644 --- a/src/popup/app/vault/views/vaultViewSite.html +++ b/src/popup/app/vault/views/vaultViewSite.html @@ -28,11 +28,11 @@