Skip to content

Commit

Permalink
Bump rpassword from 5.0.1 to 7.0.0 (paritytech#11826)
Browse files Browse the repository at this point in the history
* Bump rpassword from 5.0.1 to 7.0.0

Bumps [rpassword](https://github.com/conradkleinespel/rpassword) from 5.0.1 to 7.0.0.
- [Release notes](https://github.com/conradkleinespel/rpassword/releases)
- [Commits](conradkleinespel/rpassword@v5.0.1...v7.0.0)

---
updated-dependencies:
- dependency-name: rpassword
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Use new API

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* fmt

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
dependabot[bot] and ggwpez authored Aug 15, 2022
1 parent cf36d2f commit 90c8ac3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 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 client/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ names = { version = "0.13.0", default-features = false }
parity-scale-codec = "3.0.0"
rand = "0.7.3"
regex = "1.5.5"
rpassword = "5.0.0"
rpassword = "7.0.0"
serde = "1.0.136"
serde_json = "1.0.79"
thiserror = "1.0.30"
Expand Down
2 changes: 1 addition & 1 deletion client/cli/src/commands/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub fn read_uri(uri: Option<&String>) -> error::Result<String> {
uri.into()
}
} else {
rpassword::read_password_from_tty(Some("URI: "))?
rpassword::prompt_password("URI: ")?
};

Ok(uri)
Expand Down
5 changes: 2 additions & 3 deletions client/cli/src/params/keystore_params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl KeystoreParams {
let (password_interactive, password) = (self.password_interactive, self.password.clone());

let pass = if password_interactive {
let password = rpassword::read_password_from_tty(Some("Key password: "))?;
let password = rpassword::prompt_password("Key password: ")?;
Some(SecretString::new(password))
} else {
password
Expand All @@ -105,6 +105,5 @@ impl KeystoreParams {
}

fn input_keystore_password() -> Result<String> {
rpassword::read_password_from_tty(Some("Keystore password: "))
.map_err(|e| format!("{:?}", e).into())
rpassword::prompt_password("Keystore password: ").map_err(|e| format!("{:?}", e).into())
}

0 comments on commit 90c8ac3

Please sign in to comment.