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
This commit is contained in:
cuberoot74088 2023-05-17 00:35:24 +02:00 committed by GitHub
parent cf77aac868
commit 8de3641614
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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 # 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 If the user wishes you can direct them to `https://idm.mydomain.name/ui/reset` where they can

View file

@ -588,7 +588,7 @@ impl AccountCredential {
println!(); println!();
println!("This link: {}", url.as_str()); println!("This link: {}", url.as_str());
println!( println!(
"Or run this command: kanidm person credential use_reset_token {}", "Or run this command: kanidm person credential use-reset-token {}",
cuintent_token.token cuintent_token.token
); );
println!(); println!();

View file

@ -160,7 +160,7 @@ pub struct AccountNamedTagPkOpt {
} }
#[derive(Debug, Args)] #[derive(Debug, Args)]
/// Command-line options for account credental use_reset_token /// Command-line options for account credental use-reset-token
pub struct UseResetTokenOpt { pub struct UseResetTokenOpt {
#[clap(flatten)] #[clap(flatten)]
copt: CommonOpt, copt: CommonOpt,