From e5a43afe100554a6b08fd51966b7fe1e670c812f Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 8 Feb 2022 14:36:51 +0100 Subject: [PATCH] proxmox-tfa: make TfaChallenge members public rust based *clients* may want/need access to it Signed-off-by: Wolfgang Bumiller --- proxmox-tfa/src/api/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/proxmox-tfa/src/api/mod.rs b/proxmox-tfa/src/api/mod.rs index 1f9fb2c0..7cf2c1bf 100644 --- a/proxmox-tfa/src/api/mod.rs +++ b/proxmox-tfa/src/api/mod.rs @@ -856,24 +856,24 @@ const fn is_default_tfa_enable(v: &bool) -> bool { pub struct TfaChallenge { /// True if the user has TOTP devices. #[serde(skip_serializing_if = "bool_is_false", default)] - totp: bool, + pub totp: bool, /// Whether there are recovery keys available. #[serde(skip_serializing_if = "RecoveryState::is_unavailable", default)] - recovery: RecoveryState, + pub recovery: RecoveryState, /// If the user has any u2f tokens registered, this will contain the U2F challenge data. #[serde(skip_serializing_if = "Option::is_none")] - u2f: Option, + pub u2f: Option, /// If the user has any webauthn credentials registered, this will contain the corresponding /// challenge data. #[serde(skip_serializing_if = "Option::is_none", skip_deserializing)] - webauthn: Option, + pub webauthn: Option, /// True if the user has yubico keys configured. #[serde(skip_serializing_if = "bool_is_false", default)] - yubico: bool, + pub yubico: bool, } fn bool_is_false(v: &bool) -> bool { -- 2.39.2