mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
Fix auto biometric prompt for browser (#8137)
This commit is contained in:
parent
668980ad38
commit
0e9a4239a5
@ -104,7 +104,7 @@ export class LockComponent extends BaseLockComponent {
|
|||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
await super.ngOnInit();
|
await super.ngOnInit();
|
||||||
const disableAutoBiometricsPrompt = await firstValueFrom(
|
const autoBiometricsPrompt = await firstValueFrom(
|
||||||
this.biometricStateService.promptAutomatically$,
|
this.biometricStateService.promptAutomatically$,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ export class LockComponent extends BaseLockComponent {
|
|||||||
document.getElementById(this.pinEnabled ? "pin" : "masterPassword")?.focus();
|
document.getElementById(this.pinEnabled ? "pin" : "masterPassword")?.focus();
|
||||||
if (
|
if (
|
||||||
this.biometricLock &&
|
this.biometricLock &&
|
||||||
!disableAutoBiometricsPrompt &&
|
autoBiometricsPrompt &&
|
||||||
this.isInitialLockScreen &&
|
this.isInitialLockScreen &&
|
||||||
(await this.authService.getAuthStatus()) === AuthenticationStatus.Locked
|
(await this.authService.getAuthStatus()) === AuthenticationStatus.Locked
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user