1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[PM-2772] add flag to deter process reload if cancel is clicked on biometrics (#7350)

* add flag to deter process reload if cancel is clicked on biometrics

* rename flag

* store biometrics cancelled to disk instead of integrating with process reload

* allow auto-prompt when opening app
This commit is contained in:
Jake Fink
2024-01-19 10:08:55 -05:00
committed by GitHub
parent ed101946b4
commit 07af08b893
6 changed files with 39 additions and 0 deletions

View File

@@ -136,6 +136,10 @@ export class LockComponent extends BaseLockComponent {
return;
}
if (await this.stateService.getBiometricPromptCancelled()) {
return;
}
this.biometricAsked = true;
if (await ipc.platform.isWindowVisible()) {
this.unlockBiometric();

View File

@@ -89,6 +89,8 @@ export class WindowMain {
// This method will be called when Electron is shutting
// down the application.
app.on("before-quit", () => {
// Allow biometric to auto-prompt on reload
this.stateService.setBiometricPromptCancelled(false);
this.isQuitting = true;
});