Don't include a message when calling password::prompt_to_unlock.

- `password::prompt_to_unlock` takes a description of the item to
    unlock, not a full password prompt.

  - Fix the prompts.
This commit is contained in:
Neal H. Walfield 2024-07-05 14:24:51 +02:00
parent 79443e5e1a
commit 3de408df3f
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3
2 changed files with 2 additions and 4 deletions

View File

@ -144,8 +144,7 @@ pub fn password(sq: Sq,
loop {
let p = password::prompt_to_unlock(&format!(
"Please enter the password to decrypt \
the key {}/{}, {}",
"{}/{}, {}",
cert.keyid(), ka.keyid(), uid))?;
match key.unlock(p.clone()) {

View File

@ -1271,8 +1271,7 @@ impl<'store: 'rstore, 'rstore> Sq<'store, 'rstore> {
loop {
let p = password::prompt_to_unlock(&format!(
"Please enter the password to decrypt \
the key {}/{}, {}",
"{}/{}, {}",
ka.cert().keyid(), ka.keyid(), uid))?;
if p == "".into() {