oliver-zehentleitner / maity
contract+hub: mailed codes without the space ("482913", not "482 913") so a double-click selects them
tsk-x518vbkcxwvj Done Maity Coder Claude 004
Owner request (Oliver, chat 102289, 2026-11-10, pulled forward): "in der 2FA email hat der Code den wir zuschicken ein leerzeichen, das ist blöd zum kopieren, weil man nicht mehr einfach doppelklick machen kann."
Today the hub writes every mailed code as "123 456":
- hub/src/maity_hub/auth/mail_factor.py:99 (mail as second factor) and :260 (confirm mail);
- hub/src/maity_hub/auth/email_links.py:225 (the sign-in mail's alternative code).
docs/api.md §2 (around line 1749) shows the sign-in code as 482 913.
Wanted: all three mails write the six digits without a space, so a double-click selects the whole code. Inputs keep accepting a space (normalise_code, web replace(/\s+/g, "")), so codes copied from older mails still work.
One PR: the contract line(s) that show the spaced form, the three call sites, and the tests that assert the spaced form (test_catalog.py:70, test_email_link_state.py:166, plus any for mail_factor). Check the catalogs (mail texts in every language) for a spaced example. Add a changelog fragment and a short KTW reason (owner's request: the double-click). Review via maity-review-team-lead#vuur.