1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

Use getKey to actually retrieve key. (#332)

`hasKey` just validates it's available
This commit is contained in:
Matt Gibson 2021-06-21 13:26:45 -04:00 committed by GitHub
parent 62b5a05c40
commit 10643be8bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,6 +418,8 @@ export class Program extends BaseProgram {
} else {
this.processResponse(Response.error('Vault is locked.'), true);
}
} else if (!this.main.cryptoService.hasKeyInMemory()) {
await this.main.cryptoService.getKey();
}
}