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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user