1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

Hide password input when using key connector (#1169)

This commit is contained in:
Oscar Hinton
2021-11-22 18:37:28 +01:00
committed by GitHub
parent 25b915cf26
commit b607a4ed08
4 changed files with 15 additions and 13 deletions

2
jslib

Submodule jslib updated: 8b01eea446...f4c66b2c8c

View File

@@ -1,10 +1,10 @@
<form id="lock-page" (ngSubmit)="submit()">
<div class="content">
<p aria-hidden="true"><i class="fa fa-lock fa-4x text-muted"></i></p>
<p>{{(pinLock ? 'yourVaultIsLockedPinCode' : 'yourVaultIsLocked') | i18n}}</p>
<p>{{'yourVaultIsLocked' | i18n}}</p>
<div class="box last">
<div class="box-content">
<div class="box-content-row box-content-row-flex" appBoxRow>
<div class="box-content-row box-content-row-flex" appBoxRow *ngIf="!hideInput">
<div class="row-main" *ngIf="pinLock">
<label for="pin">{{'pin' | i18n}}</label>
<input id="pin" type="{{showPassword ? 'text' : 'password'}}" name="PIN" class="monospaced"
@@ -29,19 +29,20 @@
</div>
</div>
<div class="buttons with-rows">
<div class="buttons-row" *ngIf="supportsBiometric && biometricLock">
<button type="button" class="btn block" [ngClass]="{'primary font-weight-bold': hideInput}"
appBlurClick (click)="unlockBiometric()">
{{biometricText | i18n}}
</button>
</div>
<div class="buttons-row">
<button type="submit" class="btn primary block" appBlurClick>
<button type="submit" class="btn primary block" appBlurClick *ngIf="!hideInput">
<i class="fa fa-unlock-alt" aria-hidden="true"></i> <b>{{'unlock' | i18n}}</b>
</button>
<button type="button" class="btn block" appBlurClick (click)="logOut()">
{{'logOut' | i18n}}
</button>
</div>
<div class="buttons-row" *ngIf="supportsBiometric && biometricLock">
<button type="button" class="btn block" appBlurClick (click)="unlockBiometric()">
{{biometricText | i18n}}
</button>
</div>
</div>
</div>
</form>

View File

@@ -787,7 +787,7 @@
"message": "Syncing failed"
},
"yourVaultIsLocked": {
"message": "Your vault is locked. Verify your master password to continue."
"message": "Your vault is locked. Verify your identity to continue."
},
"unlock": {
"message": "Unlock"
@@ -1315,9 +1315,6 @@
"invalidPin": {
"message": "Invalid PIN code."
},
"yourVaultIsLockedPinCode": {
"message": "Your vault is locked. Verify your PIN code to continue."
},
"unlockWithWindowsHello": {
"message": "Unlock with Windows Hello"
},

View File

@@ -96,6 +96,10 @@ p.lead {
white-space: pre-wrap;
}
.font-weight-bold {
font-weight: bold;
}
.sr-only {
position: absolute !important;
width: 1px !important;