• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

medplum / medplum / 30479012945
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-10051-dc385f9c47a6df2a9df0252ce933ab5223ac01c3
DEFAULT BRANCH: main
Ran 29 Jul 2026 06:28PM UTC
Jobs 1
Files 849
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jul 2026 06:14PM UTC coverage: 91.991%. Remained the same
30479012945

push

github

web-flow
fix(server): generate an MFA secret on demand at enrollment (#9997)

A TOTP secret was only ever created when a user was invited with
`mfaRequired: true` or when they loaded `GET /auth/mfa/status`. Any other
user brought under an MFA requirement later — most notably by enabling the
project-wide `mfaRequired` setting — was prompted to enroll at login with
an enrollment URI containing `secret=undefined`, and `login-enroll`
rejected their authenticator code with `Secret not found`. Because the
login could not complete, they could not reach the Security page to have a
secret generated either, so the only way through was email-based MFA.

Generate and persist the secret when the enrollment payload is built.
`/auth/mfa/status` already did this, so both call sites now share
`buildTotpEnrollment`.

Signed-off-by: Derrick Farris <derrick@medplum.com>

22680 of 25763 branches covered (88.03%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 2 files covered. (100.0%)

40239 of 42634 relevant lines covered (94.38%)

12282.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30479012945.1 29 Jul 2026 06:28PM UTC 849
91.99
GitHub Action Run
Source Files on build 30479012945
  • Tree
  • List 849
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30479012945
  • 7d74c449 on github
  • Prev Build on gh-readonly-queue/main/pr-9996-6e0df99e941632d79c29f74f2deb4e3596fc0c21 (#30478038254)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc