mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +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 encUserKey = await this.stateService.getEncryptedCryptoSymmetricKey({ userId: userId });
|
||||||
|
|
||||||
const userKey = await this.masterPasswordService.decryptUserKeyWithMasterKey(
|
const userKey = await this.masterPasswordService.decryptUserKeyWithMasterKey(
|
||||||
masterKey,
|
masterKey,
|
||||||
new EncString(encUserKey),
|
encUserKey ? new EncString(encUserKey) : undefined,
|
||||||
);
|
);
|
||||||
|
|
||||||
const pinKeyEncryptedUserKey = await this.createPinKeyEncryptedUserKey(pin, userKey, userId);
|
const pinKeyEncryptedUserKey = await this.createPinKeyEncryptedUserKey(pin, userKey, userId);
|
||||||
|
Loading…
Reference in New Issue
Block a user