Skip to content

fix(mfa): show setup secret during forced enrollment - #199

Merged
NeuroKoder3 merged 1 commit into
mainfrom
fix/mfa-enrollment-secret-ui
Jul 30, 2026
Merged

fix(mfa): show setup secret during forced enrollment#199
NeuroKoder3 merged 1 commit into
mainfrom
fix/mfa-enrollment-secret-ui

Conversation

@NeuroKoder3

Copy link
Copy Markdown
Owner

Summary

  • Forced MFA enrollment UI expected secret_base32 / otpauth_url, but desktop beginEnrollment returned secret / otpauth, so the setup key never rendered.
  • Normalize field aliases in MFA service + UI, pass secret into confirmEnrollment, and show a copyable authenticator setup key (offline-safe).

Test plan

  • Log in as admin requiring MFA enrollment
  • Click Begin MFA Setup and confirm a secret is shown with Copy
  • Add secret in authenticator app and verify 6-digit code enables MFA
  • Confirm backup codes screen appears after success

Normalize beginEnrollment field names (secret/otpauth aliases), pass secret into confirmEnrollment, and surface a copyable authenticator setup key offline instead of a broken external QR dependency.

Co-authored-by: Cursor <cursoragent@cursor.com>
@strix-security

Copy link
Copy Markdown

Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here.

@NeuroKoder3
NeuroKoder3 merged commit 7449ae9 into main Jul 30, 2026
16 checks passed
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