Repository navigation
Add two-factor authentication: settings and enrollment- #112 - #115
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
microstudi
left a comment
There was a problem hiding this comment.
Amazon job Anna, let's go for the next!
🎩 What? Why?
Participants have no way to protect their account beyond the password. This PR adds two-factor authentication (2FA): a page in the account where participants attach an authenticator app or the email code, with recovery codes, and a switch in the system panel to enable it per organization (off by default).
Please note: it is the first of three PRs. The next one asks for the code at sign in and confirms the account access before changing the factors; the last one adds enforcement for admins or everyone and passkeys. The migrations already cover all three.
📌 Related Issues
Link your PR to an issue
Testing
/system, edit the organization, check "Enable two-factor authentication" and save.EMAIL=<email> HOST=<host> bin/rails decidim:two_factor:resetand see the factors removed and the email sent.📷 Screenshots