proxmox-tfa: add Totp::digits
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
4f4fa80f2f
commit
1554465d45
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user