fix: prevent creation of rk credential
This commit is contained in:
parent
1f0d555cea
commit
b566af46f7
@ -181,7 +181,8 @@ pub fn run_cli() -> Fido2LuksResult<()> {
|
||||
} else {
|
||||
None
|
||||
};
|
||||
let cred = make_credential_id(Some(name.as_ref()), pin, &[])?;
|
||||
let cred =
|
||||
make_credential_id(Some(name.as_str()).filter(|name| name.len() > 0), pin, &[])?;
|
||||
println!("{}", hex::encode(&cred.id));
|
||||
Ok(())
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ pub enum Command {
|
||||
#[structopt(flatten)]
|
||||
authenticator: AuthenticatorParameters,
|
||||
/// Name to be displayed on the authenticator display
|
||||
#[structopt(env = "FIDO2LUKS_CREDENTIAL_NAME", default_value = "fido2luks")]
|
||||
#[structopt(env = "FIDO2LUKS_CREDENTIAL_NAME", default_value = "")]
|
||||
name: String,
|
||||
},
|
||||
/// Check if an authenticator is connected
|
||||
|
Loading…
x
Reference in New Issue
Block a user