1
0
mirror of https://github.com/bitwarden/cli synced 2026-01-10 04:03:14 +00:00

Use getKey to actually retrieve key. (#332)

`hasKey` just validates it's available

(cherry picked from commit 10643be8bb)
This commit is contained in:
Matt Gibson
2021-06-21 13:26:45 -04:00
parent 793db06f06
commit e3387dbcf6

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