tfa: fix deserialize-default in TfaUser

Note that this was currently not deserialized anywhere, so this was
not an issue, but the api-macro now treats this as an error.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-12-06 14:54:46 +01:00
parent 2435ab29e2
commit 5d9e33d1d9

View File

@ -235,7 +235,7 @@ pub struct TfaUser {
pub entries: Vec<TypedTfaInfo>,
/// The user is locked out of TOTP authentication.
#[serde(skip_serializing_if = "super::bool_is_false")]
#[serde(default, skip_serializing_if = "super::bool_is_false")]
pub totp_locked: bool,
/// If a user's second factor is blocked, this contains the block's expiration time.