From 5d9e33d1d9257bf654012d39390f40bf746aeebf Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 6 Dec 2023 14:54:46 +0100 Subject: [PATCH] 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 --- proxmox-tfa/src/api/methods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-tfa/src/api/methods.rs b/proxmox-tfa/src/api/methods.rs index 86781908..17715b87 100644 --- a/proxmox-tfa/src/api/methods.rs +++ b/proxmox-tfa/src/api/methods.rs @@ -235,7 +235,7 @@ pub struct TfaUser { pub entries: Vec, /// 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.