2FA SMS passcode uses the stored dialing code directly
Shipped 2026-06-01
The 2FA passcode SMS path previously looked up a member’s dialing code by
passing members.country (the numeric dialing code) into a query that
matches on countries.iso_code (an ISO string). That lookup never matched,
so the recipient number fell back to members.country anyway. The dead
lookup is removed and members.country is now used directly to build the
+<dialing-code><phone> recipient.
-
No change to the number sent for correctly-configured members — only a redundant per-send database query was removed.
-
Related production incident: members whose
members.countrywas0received an invalid+0…number and silently got no SMS. That bad data was corrected separately in production (see the Jira ticket); this change hardens the code path. -
Jira: TNBUGS-1729
-
PR: #664