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

Cache 2fa code for 1min when setting it up #3570

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

supercrafter100
Copy link
Member

While this should normally not be needed, there is currently an issue when force 2fa is enabled for a group that causes every request to be redirected to this page. A side effect of this is that every page load, the 2fa code gets regenerated and thus is no longer valid when the user enters their code. To address this, I cache the code for a minute to make sure that they have managed to enter the code and no query has overridden it. It is not a perfect solution but should at least help fix the issue for the time being.

@supercrafter100
Copy link
Member Author

This should hopefully close #3495

@supercrafter100 supercrafter100 linked an issue Dec 14, 2024 that may be closed by this pull request
@supercrafter100 supercrafter100 added this to the 2.2.0 milestone Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Force Two Factor Authentication for group members.
1 participant