Skip to content

Refine 2FA to enterprise-grade - #102

Merged
flymia merged 1 commit into
mainfrom
task/refine-2fa
Jul 22, 2026
Merged

flymia merged 1 commit into
mainfrom
task/refine-2fa

Conversation

@flymia

@flymia flymia commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

This fixes #99.

  • Hide recovery codes after setup; show them once (after enable/regenerate or a password-confirmed reveal), never on every page load
  • Require the account password for all sensitive 2FA actions (enable, disable, view codes, regenerate) via password-confirm modals
  • Add copy/download and an "I have saved my recovery codes" acknowledgment on the one-time reveal
  • Drive 2FA management through password-gated SettingsController routes delegating to Fortify's Action classes, avoiding the password.confirm middleware POST/DELETE redirect-drop
  • Gate Fortify's built-in 2FA routes as defense-in-depth (confirmPassword => true) and add the confirm-password view
  • Update and extend the 2FA test suite (16 tests)

- Hide recovery codes after setup; show them once (after enable/regenerate
  or a password-confirmed reveal), never on every page load
- Require the account password for all sensitive 2FA actions (enable,
  disable, view codes, regenerate) via password-confirm modals
- Add copy/download and an "I have saved my recovery codes" acknowledgment
  on the one-time reveal
- Drive 2FA management through password-gated SettingsController routes
  delegating to Fortify's Action classes, avoiding the password.confirm
  middleware POST/DELETE redirect-drop
- Gate Fortify's built-in 2FA routes as defense-in-depth
  (confirmPassword => true) and add the confirm-password view
- Update and extend the 2FA test suite (16 tests)
@flymia
flymia merged commit 15b3e7f into main Jul 22, 2026
1 check passed
@flymia
flymia deleted the task/refine-2fa branch July 22, 2026 12:19
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.

task: Refine 2FA

1 participant