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() {
|
||||
await super.ngOnInit();
|
||||
const disableAutoBiometricsPrompt = await firstValueFrom(
|
||||
const autoBiometricsPrompt = await firstValueFrom(
|
||||
this.biometricStateService.promptAutomatically$,
|
||||
);
|
||||
|
||||
|
@ -112,7 +112,7 @@ export class LockComponent extends BaseLockComponent {
|
|||
document.getElementById(this.pinEnabled ? "pin" : "masterPassword")?.focus();
|
||||
if (
|
||||
this.biometricLock &&
|
||||
!disableAutoBiometricsPrompt &&
|
||||
autoBiometricsPrompt &&
|
||||
this.isInitialLockScreen &&
|
||||
(await this.authService.getAuthStatus()) === AuthenticationStatus.Locked
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue