Skip to content

Commit

Permalink
Fix credential edit to not clear password
Browse files Browse the repository at this point in the history
  • Loading branch information
anssip committed Oct 24, 2024
1 parent d699f8e commit d527f95
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.5.1]

- Fix to not clear the password prompt when editing a credential and skipping the password change

## [2.5.0]

- Added the init command to easily start using this tool
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "passlane"
version = "2.5.0"
version = "2.5.1"
edition = "2021"
authors = ["Anssi Piirainen <[email protected]>"]
license = "GPL-3.0-or-later"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub fn ask_password(question: &str, help_message: Option<&str>) -> String {

pub fn ask_new_password(question: &str) -> Option<String> {
if ask_with_options("Do you want to change the password?", vec!["y", "n"]) == "n" {
return Some("".to_string());
return None;
}
let prompt = Password::new(question);
Some(prompt.prompt().unwrap())
Expand Down

0 comments on commit d527f95

Please sign in to comment.