mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-21 16:18:28 +01:00
fix migration test (#9163)
This commit is contained in:
parent
3900924250
commit
8e4073f1ca
@ -387,9 +387,10 @@ export class PinService implements PinServiceAbstraction {
|
||||
);
|
||||
|
||||
const encUserKey = await this.stateService.getEncryptedCryptoSymmetricKey({ userId: userId });
|
||||
|
||||
const userKey = await this.masterPasswordService.decryptUserKeyWithMasterKey(
|
||||
masterKey,
|
||||
new EncString(encUserKey),
|
||||
encUserKey ? new EncString(encUserKey) : undefined,
|
||||
);
|
||||
|
||||
const pinKeyEncryptedUserKey = await this.createPinKeyEncryptedUserKey(pin, userKey, userId);
|
||||
|
Loading…
Reference in New Issue
Block a user