forked from Proxmox/proxmox
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:
parent
2435ab29e2
commit
5d9e33d1d9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user