fix(two-factor-auth): gate 2FA enforcement on global setting (SER-2911)#7760
Closed
coskunaydinoglu wants to merge 2 commits into
Closed
fix(two-factor-auth): gate 2FA enforcement on global setting (SER-2911)#7760coskunaydinoglu wants to merge 2 commits into
coskunaydinoglu wants to merge 2 commits into
Conversation
b7569ac to
26a04d3
Compare
…911) Toggling the global 2FA setting now updates every member's per-user 2FA switch instead of only affecting newly created users: - Enabling 2FA globally turns the switch on for all existing users. - Disabling 2FA globally turns the switch off for all users and clears their stored secret, so users created while it was enabled are no longer prompted after it is turned off. While 2FA is globally disabled, users can still enable/disable it for their own account; while globally enabled they cannot disable it. The change reacts only to an actual admin toggle (an initialization guard avoids touching members on the routine config load at process startup). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V4HJ5qrPiDme1u8XqcjxqF
26a04d3 to
12bdea1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.