1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00: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

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();
}
}