mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
Add support for hiding input on lock screen if using key connector (#560)
This commit is contained in:
@@ -37,6 +37,7 @@ export class LockComponent implements OnInit {
|
|||||||
supportsBiometric: boolean;
|
supportsBiometric: boolean;
|
||||||
biometricLock: boolean;
|
biometricLock: boolean;
|
||||||
biometricText: string;
|
biometricText: string;
|
||||||
|
hideInput: boolean;
|
||||||
|
|
||||||
protected successRoute: string = 'vault';
|
protected successRoute: string = 'vault';
|
||||||
protected onSuccessfulSubmit: () => void;
|
protected onSuccessfulSubmit: () => void;
|
||||||
@@ -60,9 +61,11 @@ export class LockComponent implements OnInit {
|
|||||||
(await this.cryptoService.hasKeyStored('biometric') || !this.platformUtilsService.supportsSecureStorage());
|
(await this.cryptoService.hasKeyStored('biometric') || !this.platformUtilsService.supportsSecureStorage());
|
||||||
this.biometricText = await this.storageService.get(ConstantsService.biometricText);
|
this.biometricText = await this.storageService.get(ConstantsService.biometricText);
|
||||||
this.email = await this.userService.getEmail();
|
this.email = await this.userService.getEmail();
|
||||||
|
const usesKeyConnector = await this.keyConnectorService.getUsesKeyConnector();
|
||||||
|
this.hideInput = usesKeyConnector && !this.pinLock;
|
||||||
|
|
||||||
// Users with key connector and without biometric or pin has no MP to unlock using
|
// Users with key connector and without biometric or pin has no MP to unlock using
|
||||||
if (await this.keyConnectorService.getUsesKeyConnector() && !(this.biometricLock || this.pinLock)) {
|
if (usesKeyConnector && !(this.biometricLock || this.pinLock)) {
|
||||||
await this.vaultTimeoutService.logOut();
|
await this.vaultTimeoutService.logOut();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user