DefGuard / defguard

Enterprise, fast, secure VPN & SSO platform with hardware keys, 2FA/MFA
https://defguard.net
Other
743 stars 22 forks source link

Add configuration of 2FA code lifetime #581

Open teon opened 3 months ago

teon commented 3 months ago

Currently we have a fixed time of 60s for 2fa lifetime. Please:

  1. add a configuration value like. DEFGUARD_MFA_CODE_LIFETIME in minutes.
  2. based on the setting add to email information how long the code is valid.
teon commented 3 months ago

Ok tested and working, needs DOCS - reassigning as I have struggled to define proper configuration. I would not inform about milliseconds - I would inform about minutes - eg. 240sec or 240minutes.. in the log there are secoonds and milsieconds as an example...