resend: a rejected username drops the visitor into the sign-up form with no explanation #140

Stängd
öppnade 2026-08-01 14:21:37 +00:00 av supernaut · 0 kommentarer
Ägare

Found while working on #127.

Post a malformed username to the resend form and the server redirects to ?status=input
(src/pages/api/resend-setup-link.ts:59). That status renders the main sign-up form, because
showResend at src/components/signup-form.astro:29-30 does not treat it as a resend state. So the
person asking for a new setup link is silently moved to a different task, with no explanation and no way
back to what they were doing except finding the resend link again.

The input carries a pattern, so the browser blocks most of these client-side and the real-world hit
rate is low. It is still a dead end, and the class of person who reaches it — someone whose setup link
already failed once — is exactly the one least able to guess what happened.

Done when

A rejected resend submission comes back to the resend view with an error that says what was wrong
with the username, in both languages.

Found while working on #127. Post a malformed username to the resend form and the server redirects to `?status=input` (`src/pages/api/resend-setup-link.ts:59`). That status renders the **main sign-up form**, because `showResend` at `src/components/signup-form.astro:29-30` does not treat it as a resend state. So the person asking for a new setup link is silently moved to a different task, with no explanation and no way back to what they were doing except finding the resend link again. The input carries a `pattern`, so the browser blocks most of these client-side and the real-world hit rate is low. It is still a dead end, and the class of person who reaches it — someone whose setup link already failed once — is exactly the one least able to guess what happened. ## Done when A rejected resend submission comes back to the **resend** view with an error that says what was wrong with the username, in both languages.
supernaut lade till detta till projektet Bitborg Web 2026-08-01 14:22:03 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-web#140
Ingen beskrivning angiven.