File tree Expand file tree Collapse file tree
definitions/mfkdf_derived_key Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ impl MFKDF2DerivedKey {
1212
1313 let salt = general_purpose:: STANDARD . decode ( & self . policy . salt ) . unwrap ( ) ;
1414
15- // TODO (@lonerapier): what if the policy has a stack key?
1615 Argon2 :: new (
1716 argon2:: Algorithm :: Argon2id ,
1817 Version :: default ( ) ,
Original file line number Diff line number Diff line change @@ -33,16 +33,14 @@ pub struct TOTPOptions {
3333
3434impl Default for TOTPOptions {
3535 fn default ( ) -> Self {
36- let now_ms = SystemTime :: now ( ) . duration_since ( UNIX_EPOCH ) . unwrap ( ) . as_millis ( ) as u64 ;
37-
3836 Self {
3937 id : Some ( "totp" . to_string ( ) ) ,
4038 secret : None ,
4139 digits : Some ( 6 ) ,
4240 hash : Some ( HashAlgorithm :: Sha1 ) ,
4341 issuer : Some ( "MFKDF" . to_string ( ) ) ,
4442 label : Some ( "mfkdf.com" . to_string ( ) ) ,
45- time : Some ( now_ms ) , // TODO: see if this can be None
43+ time : None ,
4644 window : Some ( 87600 ) ,
4745 step : Some ( 30 ) ,
4846 oracle : None ,
You can’t perform that action at this time.
0 commit comments