Masking Card Security Code in browser extension (#647)

Desktop Issue #78 (CreditCard Security Code is visible)
This commit is contained in:
Neil Burrows 2018-06-13 17:34:11 +01:00 committed by Kyle Spearrin
parent 2033e46683
commit 91eb676cf5
1 changed files with 7 additions and 1 deletions

View File

@ -111,9 +111,15 @@
<div class="box-content-row box-content-row-flex" *ngIf="cipher.card.code">
<div class="row-main">
<span class="row-label">{{'securityCode' | i18n}}</span>
{{cipher.card.code}}
<span [hidden]="showCardCode" >{{cipher.card.maskedCode}}</span>
<span [hidden]="!showCardCode" >{{cipher.card.code}}</span>
</div>
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick title="{{'toggleVisibility' | i18n}}"
(click)="toggleCardCode()">
<i class="fa fa-lg"
[ngClass]="{'fa-eye': !showCardCode, 'fa-eye-slash': showCardCode}"></i>
</a>
<a class="row-btn" href="#" appStopClick title="{{'copySecurityCode' | i18n}}"
(click)="copy(cipher.card.code, 'securityCode', 'Security Code')">
<i class="fa fa-lg fa-clipboard"></i>