mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-23 09:23:54 +02:00
Cleanup
This commit is contained in:
parent
eff443df19
commit
bae0c90f59
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue