From 8de3641614a1cda9165c3e861938e0bff719d633 Mon Sep 17 00:00:00 2001 From: cuberoot74088 Date: Wed, 17 May 2023 00:35:24 +0200 Subject: [PATCH] Fix use-reset-token command hint (#1639) * Fix use-reset-token command hint running `kanidm person credential create-reset-token` prints out information how to do credential reset. This fixes the provided cli command. * Update book with use-reset-token * Update kanidm.rs on use-reset-token --- book/src/authentication.md | 2 +- tools/cli/src/cli/person.rs | 2 +- tools/cli/src/opt/kanidm.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book/src/authentication.md b/book/src/authentication.md index dd8aa3dd8..8bcaec802 100644 --- a/book/src/authentication.md +++ b/book/src/authentication.md @@ -74,7 +74,7 @@ kanidm person credential create-reset-token demo_user --name idm_admin # ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ # # This link: https://localhost:8443/ui/reset?token=8qDRG-AE1qC-zjjAT-0Fkd6 -# Or run this command: kanidm person credential use_reset_token 8qDRG-AE1qC-zjjAT-0Fkd6 +# Or run this command: kanidm person credential use-reset-token 8qDRG-AE1qC-zjjAT-0Fkd6 ``` If the user wishes you can direct them to `https://idm.mydomain.name/ui/reset` where they can diff --git a/tools/cli/src/cli/person.rs b/tools/cli/src/cli/person.rs index 1ce2e8fb0..5fff4ae7e 100644 --- a/tools/cli/src/cli/person.rs +++ b/tools/cli/src/cli/person.rs @@ -588,7 +588,7 @@ impl AccountCredential { println!(); println!("This link: {}", url.as_str()); println!( - "Or run this command: kanidm person credential use_reset_token {}", + "Or run this command: kanidm person credential use-reset-token {}", cuintent_token.token ); println!(); diff --git a/tools/cli/src/opt/kanidm.rs b/tools/cli/src/opt/kanidm.rs index 759f16073..0b32c9fc1 100644 --- a/tools/cli/src/opt/kanidm.rs +++ b/tools/cli/src/opt/kanidm.rs @@ -160,7 +160,7 @@ pub struct AccountNamedTagPkOpt { } #[derive(Debug, Args)] -/// Command-line options for account credental use_reset_token +/// Command-line options for account credental use-reset-token pub struct UseResetTokenOpt { #[clap(flatten)] copt: CommonOpt,