[Web] Add forced 2FA setup and password update enforcement#7077
Open
FreddleSpl0it wants to merge 2 commits intostagingfrom
Open
[Web] Add forced 2FA setup and password update enforcement#7077FreddleSpl0it wants to merge 2 commits intostagingfrom
FreddleSpl0it wants to merge 2 commits intostagingfrom
Conversation
…d fix composer.json/lock mismatch
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.
Contribution Guidelines
What does this PR include?
Short Description
This PR adds two security and usability improvements to mailcow's authentication system:
Force 2FA Setup and Password Update Enforcement: Admins can now enforce 2FA setup and password updates for users, domain admins, and other admins via new checkboxes in edit forms. When enabled, users must complete these actions before accessing any resources (including SOGo).
Local QR Code Generation: Switched from external API (api.qrserver.com) to local BaconQrCode library for 2FA QR codes.
Key Changes
Force 2FA and Password Update:
force_tfaandforce_pw_updateattributes with UI checkboxesforce_tfaflag persists permanently to re-enforce if TFA is removedforce_pw_updateclears automatically after password changeLocal QR Code Generation:
QRServerProviderwithBaconQrCodeProviderbacon/bacon-qr-code^2.0 dependencyAffected Containers
Did you run tests?
What did you tested?
What were the final results? (Awaited, got)
force_tfapersists,force_pw_updateclears after updateAdditional Notes
directorytree/ldaprecordto v3.8.5 to fix composer.json/lock mismatch