From 1554465d45a7b05a61d246517d6082bdaa7f5e5d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 29 Oct 2021 14:31:39 +0200 Subject: [PATCH] proxmox-tfa: add Totp::digits Signed-off-by: Wolfgang Bumiller --- proxmox-tfa/src/totp.rs | 5 +++++ 1 file changed, 5 insertions(+) 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