1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-06 18:57:56 +01:00

use user sym key for account changing unlock verification

This commit is contained in:
Jacob Fink 2023-06-22 11:29:28 -04:00
parent a1e61feec3
commit 91f6943709
No known key found for this signature in database
GPG Key ID: C2F7ACF05859D008

View File

@ -122,7 +122,7 @@ export class StateService<
// FIXME: This should be refactored into AuthService or a similar service,
// as checking for the existence of the crypto key is a low level
// implementation detail.
this.activeAccountUnlockedSubject.next((await this.getCryptoMasterKey()) != null);
this.activeAccountUnlockedSubject.next((await this.getUserSymKey()) != null);
})
)
.subscribe();