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

kobotoolbox / kpi / 43455416990
86%
master: 76%

Build:
Build:
LAST BUILD BRANCH: release/2.026.43
DEFAULT BRANCH: master
Ran 13 Nov 2026 03:48PM UTC
Jobs 10
Files 891
Run time 1min
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

13 Nov 2026 03:43PM UTC coverage: 85.998% (+0.01%) from 85.986%
43455416990

push

github

web-flow
feat(auth): reauth on changing email, password or 2FA DEV-1971 (#7826)

### 🗒️ Checklist

1. [x] run linter locally
2. [x] update developer docs (API, README, inline, etc.), if any
3. [x] for user-facing doc changes create a Zulip thread at `#Support
Docs Updates`, if any
4. [x] draft PR with a title `<type>(<scope>)<!>: <title> DEV-1234`
5. [x] assign yourself, tag PR: at least `Front end` and/or `Back end`
or `workflow`
6. [x] fill in the template below and delete template comments
7. [x] review thyself: read the diff and repro the preview as written
8. [x] open PR & confirm that CI passes & request reviewers, if needed
9. [x] act on any greptile review below a 5/5 score or leave comment
explaining why you won't
10. [ ] delete this checklist section from the final squash commit
before merging

### 📣 Summary

Changing your email now asks you to confirm it's you, without leaving
the page.

### 📖 Description

If you logged in more than 5 minutes ago, changing your email used to
fail with a vague error. Now a "Confirm it's you" window asks for your
password, plus a code if you have 2FA on. SSO-only accounts just enter
the code. Once you confirm, the change goes through with the address you
already typed.

The password change form also gets a 2FA code field, for when the
backend starts requiring one (DEV-3258). Turning 2FA off still asks for
a code only.

### 💭 Notes

Stacked on DEV-3148, so the base is `leszek/dev-3148-2fa-ux-polish`
until that merges.

Reauthentication happens in a modal, so nothing you typed is lost. For
an email change KPI wants every credential the account has (see
`did_recently_reauthenticate` in
`kobo/apps/accounts/reauthentication.py`). The password is sent first,
so a wrong one doesn't burn a recovery code.

What changed:

- `reauthentication/` is new. It has the modal, `reauthenticate()`, and
`getReauthenticationAsk()`, which reads KPI's 403
`reauthentication_required`. `CredentialRejection` and `assertOk` moved
here from `mfa.... (continued)

10933 of 13747 branches covered (79.53%)

34205 of 39774 relevant lines covered (86.0%)

5.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 43455416990.1 13 Nov 2026 03:48PM UTC 886
54.44
2 43455416990.2 13 Nov 2026 03:49PM UTC 888
55.77
3 43455416990.3 13 Nov 2026 03:49PM UTC 886
50.05
4 43455416990.4 13 Nov 2026 03:49PM UTC 888
59.03
5 43455416990.5 13 Nov 2026 03:50PM UTC 886
59.48
6 43455416990.6 13 Nov 2026 03:50PM UTC 888
51.42
7 43455416990.7 13 Nov 2026 03:50PM UTC 886
57.44
8 43455416990.8 13 Nov 2026 03:53PM UTC 888
60.65
9 43455416990.9 13 Nov 2026 03:53PM UTC 889
66.49
10 43455416990.10 13 Nov 2026 03:55PM UTC 891
68.99
Source Files on build 43455416990
  • Tree
  • List 891
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e3a6de5d on github
  • Prev Build on main (#43445555004)
  • Next Build on main (#43455622849)
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