proxmox-tfa: add Totp::digits

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-10-29 14:31:39 +02:00
parent 4f4fa80f2f
commit 1554465d45

View File

@ -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