mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-05 08:00:48 +00:00
double recovery code length
This commit is contained in:
committed by
Maxwell Becker
parent
f2f77b4eb6
commit
ec12f63272
@@ -302,7 +302,7 @@ impl Resolve<UserArgs> for ConfirmTotpEnrollment {
|
||||
}
|
||||
|
||||
let recovery_codes =
|
||||
(0..10).map(|_| random_string(10)).collect::<Vec<_>>();
|
||||
(0..10).map(|_| random_string(20)).collect::<Vec<_>>();
|
||||
let hashed_recovery_codes = recovery_codes
|
||||
.iter()
|
||||
.map(|code| hash_password(code))
|
||||
|
||||
Reference in New Issue
Block a user