1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-26 12:25:20 +01:00

add missed pinLockType changes

This commit is contained in:
Jacob Fink 2023-07-05 17:00:10 -04:00
parent 12d439ff9f
commit 93fef8d00d
No known key found for this signature in database
GPG Key ID: C2F7ACF05859D008

View File

@ -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);