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

kobotoolbox / kpi / 24993281612 / 9
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1377-remove-api-v1-briefcase-endpoints
DEFAULT BRANCH: master
Ran 27 Apr 2026 11:58AM UTC
Files 910
Run time 25s
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

27 Apr 2026 11:49AM UTC coverage: 61.349% (+1.1%) from 60.257%
24993281612.9

push

github

web-flow
fix(mfa): prevent MFA re-enrollment lockouts by centralizing deactivation cleanup DEV-2023 (#6964)

### 📣 Summary
This PR fixes a desynchronization bug where deactivating an MFA wrapper
via the Django Admin UI left orphaned Authenticator records in the
database, breaking future re-enrollment. Cleanup logic has now been
centralized in the model to ensure safe, consistent deletion across both
API and Admin flows.

### 📖 Description
Previously, when a superuser disabled MFA through the Django Admin, the
associated django-allauth Authenticator records were not removed. This
left orphaned records in the database, causing a "Token Invalid" error
when the user attempted to re-enroll.

This PR introduces a robust, centralized deactivate() method on the
MfaMethodsWrapper model, ensuring that all related Authenticator records
are properly cleaned up whenever MFA is disabled, regardless of the
entry point (Admin or API).

4738 of 11904 branches covered (39.8%)

22071 of 35976 relevant lines covered (61.35%)

0.61 hits per line

Source Files on job 24993281612.9
  • Tree
  • List 910
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24993281612
  • 9e3b035d on github
  • Prev Job for on release/2.026.12 (#24985384679.6)
  • Next Job for on release/2.026.12 (#25043236721.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc