This commit is contained in:
William Brown 2025-02-08 11:47:41 +10:00 committed by James Hodgkinson
parent eff443df19
commit bae0c90f59
3 changed files with 3 additions and 3 deletions
tools/cli/src/cli
unix_integration/resolver/src/bin

View file

@ -162,7 +162,7 @@ impl PersonOpt {
}
PersonPosix::SetPassword(aopt) => {
let client = aopt.copt.to_client(OpType::Write).await;
let password = match password_prompt("Enter new posix (sudo) password: ") {
let password = match password_prompt("Enter new posix (sudo) password") {
Some(v) => v,
None => {
println!("Passwords do not match");

View file

@ -254,7 +254,7 @@ async fn do_password(
password.to_owned()
}
None => dialoguer::Password::new()
.with_prompt("Enter password: ")
.with_prompt("Enter password")
.interact()
.unwrap_or_else(|e| {
error!("Failed to create password prompt -- {:?}", e);

View file

@ -123,7 +123,7 @@ async fn main() -> ExitCode {
ClientResponse::PamAuthenticateStepResponse(PamAuthResponse::Password) => {
// Prompt for and get the password
let cred = match dialoguer::Password::new()
.with_prompt("Enter Unix password: ")
.with_prompt("Enter Unix password")
.interact()
{
Ok(p) => p,