two_factor_authentication
two_factor_authentication copied to clipboard
Use create date over expiry on remember 2fa cookie
If a remember 2fa cookie is issued expiring in 30 days and the server is
updated with a new value for remember_otp_session_for_seconds, the
cookie will still be valid for 30 days, as the final date was set on it.
To get around that, timestamp the cookie and compare that to the current setting on the server.