Fixed unlock command.
This commit is contained in:
parent
0e823e1259
commit
c8b7ae4959
|
@ -68,7 +68,7 @@ export class UnlockCommand {
|
||||||
return Response.error(e.message);
|
return Response.error(e.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
const userKey = await this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey);
|
const userKey = await this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId);
|
||||||
await this.cryptoService.setUserKey(userKey, userId);
|
await this.cryptoService.setUserKey(userKey, userId);
|
||||||
|
|
||||||
if (await this.keyConnectorService.getConvertAccountRequired()) {
|
if (await this.keyConnectorService.getConvertAccountRequired()) {
|
||||||
|
|
Loading…
Reference in New Issue