From 5f1a0bc0c94e425a52f2f11009d517d193dacf44 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 14 Jun 2023 13:50:37 +0200 Subject: [PATCH] tfa: make TfaUser fields public So we can print them in the proxmox-backup-manager CLI text output. Signed-off-by: Wolfgang Bumiller --- proxmox-tfa/src/api/methods.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxmox-tfa/src/api/methods.rs b/proxmox-tfa/src/api/methods.rs index a7d5deeb..b981644f 100644 --- a/proxmox-tfa/src/api/methods.rs +++ b/proxmox-tfa/src/api/methods.rs @@ -207,18 +207,18 @@ pub fn unlock_tfa(config: &mut TfaConfig, userid: &str) -> Result { /// Over the API we only provide the descriptions for TFA data. pub struct TfaUser { /// The user this entry belongs to. - userid: String, + pub userid: String, /// TFA entries. - entries: Vec, + pub entries: Vec, /// The user is locked out of TOTP authentication. #[serde(skip_serializing_if = "super::bool_is_false")] - totp_locked: bool, + pub totp_locked: bool, /// If a user's second factor is blocked, this contains the block's expiration time. #[serde(skip_serializing_if = "Option::is_none")] - tfa_locked_until: Option, + pub tfa_locked_until: Option, } /// API call implementation for `GET /access/tfa`.