diff --git a/proxmox-tfa/src/totp.rs b/proxmox-tfa/src/totp.rs index d686f5c8..d2e009bd 100644 --- a/proxmox-tfa/src/totp.rs +++ b/proxmox-tfa/src/totp.rs @@ -180,6 +180,11 @@ impl Totp { &self.secret } + /// Get the requested number of decimal digits. + pub fn digits(&self) -> u8 { + self.digits + } + /// Get the used algorithm. pub fn algorithm(&self) -> Algorithm { self.algorithm