mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-29 12:55:21 +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();
|
||||
ephemeralPinSet ||= await this.stateService.getDecryptedPinProtected();
|
||||
const pinEnabled =
|
||||
(pinStatus === "ENABLED_WITH_MP_ON_RESET" && ephemeralPinSet != null) ||
|
||||
pinStatus === "ENABLED";
|
||||
(pinStatus === "TRANSIENT" && ephemeralPinSet != null) || pinStatus === "PERSISTANT";
|
||||
|
||||
if (!pinEnabled && !(await this.vaultTimeoutSettingsService.isBiometricLockSet())) {
|
||||
await this.logOut(userId);
|
||||
|
Loading…
Reference in New Issue
Block a user