mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-29 03:00:44 +00:00
tfa: make TfaUser fields public
So we can print them in the proxmox-backup-manager CLI text output. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
ba39c5f990
commit
5f1a0bc0c9
@ -207,18 +207,18 @@ pub fn unlock_tfa(config: &mut TfaConfig, userid: &str) -> Result<bool, Error> {
|
||||
/// 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<TypedTfaInfo>,
|
||||
pub entries: Vec<TypedTfaInfo>,
|
||||
|
||||
/// 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<i64>,
|
||||
pub tfa_locked_until: Option<i64>,
|
||||
}
|
||||
|
||||
/// API call implementation for `GET /access/tfa`.
|
||||
|
Loading…
Reference in New Issue
Block a user