term: Remove typing indication for passwords
`inquire::PasswordDisplayMode::Masked` causes inquire to render characters of the password text input marked as different characters (asterisks). Users reported that they would prefer password text input to not be rendered at all, i.e., have no indication of input. This is inquire's default, so remove the lines that set the display mode.
This commit is contained in:
parent
e991bd7476
commit
88bf2a9648
|
|
@ -393,7 +393,6 @@ pub fn passphrase<V: validator::StringValidator + 'static>(
|
|||
) -> io::Result<Option<Passphrase>> {
|
||||
match Password::new("Passphrase:")
|
||||
.with_render_config(*CONFIG)
|
||||
.with_display_mode(inquire::PasswordDisplayMode::Masked)
|
||||
.without_confirmation()
|
||||
.with_validator(validate)
|
||||
.prompt()
|
||||
|
|
@ -410,7 +409,6 @@ pub fn passphrase_confirm<K: AsRef<OsStr>>(prompt: &str, var: K) -> io::Result<O
|
|||
|
||||
match Password::new(prompt)
|
||||
.with_render_config(*CONFIG)
|
||||
.with_display_mode(inquire::PasswordDisplayMode::Masked)
|
||||
.with_custom_confirmation_message("Repeat passphrase:")
|
||||
.with_custom_confirmation_error_message("The passphrases don't match.")
|
||||
.with_help_message("Leave this blank to keep your Radicle key unencrypted")
|
||||
|
|
|
|||
Loading…
Reference in New Issue