mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-24 04:57:00 +01:00
Change default totp to sha256 (#504)
This commit is contained in:
parent
78e189ee34
commit
8aa0056df6
|
@ -105,7 +105,7 @@ impl Totp {
|
|||
pub fn generate_secure(step: u64) -> Self {
|
||||
let mut rng = rand::thread_rng();
|
||||
let secret: Vec<u8> = (0..SECRET_SIZE_BYTES).map(|_| rng.gen()).collect();
|
||||
let algo = TotpAlgo::Sha512;
|
||||
let algo = TotpAlgo::Sha256;
|
||||
Totp { secret, step, algo }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue