mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
mask password on site view
This commit is contained in:
parent
8fc611e4a5
commit
8d4d2df8ad
@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -28,11 +28,11 @@
|
||||
</div>
|
||||
<div class="list-section-item">
|
||||
<span class="item-label">Password</span>
|
||||
{{site.password}}
|
||||
{{site.maskedPassword}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-section">
|
||||
<div class="list-section" ng-show="site.notes">
|
||||
<div class="list-section-header">
|
||||
Notes
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user