Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use create date over expiry on remember 2fa cookie #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pudiva
Copy link

@pudiva pudiva commented Jul 30, 2019

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant