Skip to content

Commit

Permalink
fix secret/password bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkjall committed Feb 9, 2024
1 parent 9af84ec commit 0b64af3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cursive/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ fn copy_first_line(ui: &mut Cursive, store: PasswordStoreType) {
return;
}
if let Err(err) = || -> pass::Result<()> {
//Wait, isn't this supposed to be a call to password()?
let mut secret = sel.unwrap().secret(&*store.lock()?.lock()?)?;
let mut secret = sel.unwrap().password(&*store.lock()?.lock()?)?;
helpers::set_clipboard(&secret)?;
secret.zeroize();
Ok(())
Expand All @@ -185,7 +184,7 @@ fn copy_first_line(ui: &mut Cursive, store: PasswordStoreType) {
helpers::set_clipboard(&String::new()).unwrap();
});
ui.call_on_name("status_bar", |l: &mut TextView| {
l.set_content(CATALOG.gettext("Copied password to copy buffer for 40 seconds"));
l.set_content(CATALOG.gettext("Copied first line of password to copy buffer for 40 seconds"));
});
}

Expand Down

0 comments on commit 0b64af3

Please sign in to comment.