mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Use getKey to actually retrieve key. (#332)
`hasKey` just validates it's available
This commit is contained in:
@@ -418,6 +418,8 @@ export class Program extends BaseProgram {
|
|||||||
} else {
|
} else {
|
||||||
this.processResponse(Response.error('Vault is locked.'), true);
|
this.processResponse(Response.error('Vault is locked.'), true);
|
||||||
}
|
}
|
||||||
|
} else if (!this.main.cryptoService.hasKeyInMemory()) {
|
||||||
|
await this.main.cryptoService.getKey();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user