patch secret_gen before obtaing first secret

This commit is contained in:
shimun 2020-04-06 23:33:41 +02:00
parent c8fb636846
commit b94f45d1ff
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -300,8 +300,8 @@ pub fn run_cli() -> Fido2LuksResult<()> {
ref secret_gen,
luks_settings,
} => {
let old_secret = existing_secret.obtain(&secret_gen, false, "Existing password")?;
let secret_gen = secret_gen.patch(&args, None);
let old_secret = existing_secret.obtain(&secret_gen, false, "Existing password")?;
let secret = secret_gen.obtain_secret("Password")?;
let added_slot = luks::add_key(
device.clone(),