update proxmox-tfa to 2.0

and fix still-very-bad updater usage in config api call...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2021-11-29 11:19:49 +01:00
parent 0fee4ff2a4
commit e6e2927e72
4 changed files with 58 additions and 17 deletions

View File

@ -228,6 +228,7 @@ fn add_tfa_entry(
value,
challenge,
r#type,
None,
)?;
crate::config::tfa::write(&data)?;
Ok(out)