Skip to content

feat: Add group policies, method management, and a safer MFA flow - #8

Merged
hellopablo merged 1 commit into
feature/pre-new-adminfrom
feature/mfa-group-policies-and-manage-ui
Sep 9, 2026
Merged

feat: Add group policies, method management, and a safer MFA flow#8
hellopablo merged 1 commit into
feature/pre-new-adminfrom
feature/mfa-group-policies-and-manage-ui

Conversation

@hellopablo

Copy link
Copy Markdown
Member

Summary

  • Adds per-group MFA policies, enrolled methods, and a /mfa/manage screen with setup, resend, and trusted-device handling.
  • Hardens login/logout so invalid cookies fail closed, live tokens are reused instead of minting until lockout, and flash errors survive a failed challenge.
  • Extends drivers with user-facing setup copy and resend(), plus console commands and admin tabs for group/user MFA.

Test plan

  • Run module tests (vendor/bin/phpunit)
  • Enable email and authenticator, set a group to required, and complete login + setup
  • Confirm a single enabled driver skips the chooser, resend keeps the current token, and logout clears MFA cookies
  • Check /mfa/manage layout, last-method removal under a required policy, and the group MFA tab in admin

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@hellopablo
hellopablo merged commit a4e3648 into feature/pre-new-admin Sep 9, 2026
4 checks passed
@hellopablo
hellopablo deleted the feature/mfa-group-policies-and-manage-ui branch September 9, 2026 19:13
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.

1 participant