mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-18 01:41:27 +01:00
add missed pinLockType changes
This commit is contained in:
parent
12d439ff9f
commit
93fef8d00d
@ -75,8 +75,7 @@ export class VaultTimeoutService implements VaultTimeoutServiceAbstraction {
|
|||||||
let ephemeralPinSet = await this.stateService.getUserKeyPinEphemeral();
|
let ephemeralPinSet = await this.stateService.getUserKeyPinEphemeral();
|
||||||
ephemeralPinSet ||= await this.stateService.getDecryptedPinProtected();
|
ephemeralPinSet ||= await this.stateService.getDecryptedPinProtected();
|
||||||
const pinEnabled =
|
const pinEnabled =
|
||||||
(pinStatus === "ENABLED_WITH_MP_ON_RESET" && ephemeralPinSet != null) ||
|
(pinStatus === "TRANSIENT" && ephemeralPinSet != null) || pinStatus === "PERSISTANT";
|
||||||
pinStatus === "ENABLED";
|
|
||||||
|
|
||||||
if (!pinEnabled && !(await this.vaultTimeoutSettingsService.isBiometricLockSet())) {
|
if (!pinEnabled && !(await this.vaultTimeoutSettingsService.isBiometricLockSet())) {
|
||||||
await this.logOut(userId);
|
await this.logOut(userId);
|
||||||
|
Loading…
Reference in New Issue
Block a user