1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

Fix biometric setup not resetting the setting in browser (#15267)

This commit is contained in:
Bernd Schoolmann
2025-06-26 16:41:04 +02:00
committed by GitHub
parent 28e799f2bb
commit 963688b17e

View File

@@ -533,6 +533,7 @@ export class AccountSecurityComponent implements OnInit, OnDestroy {
await this.biometricStateService.setBiometricUnlockEnabled(successful); await this.biometricStateService.setBiometricUnlockEnabled(successful);
if (!successful) { if (!successful) {
await this.biometricStateService.setFingerprintValidated(false); await this.biometricStateService.setFingerprintValidated(false);
return;
} }
this.toastService.showToast({ this.toastService.showToast({
variant: "success", variant: "success",
@@ -597,6 +598,8 @@ export class AccountSecurityComponent implements OnInit, OnDestroy {
this.i18nService.t("errorEnableBiometricTitle"), this.i18nService.t("errorEnableBiometricTitle"),
this.i18nService.t("errorEnableBiometricDesc"), this.i18nService.t("errorEnableBiometricDesc"),
); );
setupResult = false;
return;
} }
setupResult = true; setupResult = true;
} catch (e) { } catch (e) {