signup: keep the typed username and email when the server rejects a submission #164
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web#164
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Why
Client-side validation cannot prevent the statuses the server decides:
taken,ratelimited,error,nomail. Each of them redirects to an empty form(
src/pages/api/signup.ts:67-73), so a user whose chosen username is taken retypes their emailaddress, re-picks the account type, re-accepts the terms — and solves a fresh proof-of-work,
because the token is single-use (
src/lib/captcha.ts:179-181).Options
history, the edge access log, the log store and any
Refererwe emit. A data-minimisationregression for a convenience feature.
signup_draft(
HttpOnly,Secure,SameSite=Lax,Path=/signup,Max-Age≈300) carrying username, emailand account type; the page reads it, echoes the values and deletes it. Post/Redirect/Get is
preserved and no personal data reaches a URL or a log line.
/api/signupis adeliberate standalone endpoint and a non-redirect response reintroduces resubmit-on-refresh.
Needs a decision before implementation
Adding a cookie means editing both privacy policies: they currently say strictly necessary cookies
are used "for signing in and keeping your session secure"
(
src/content/en/privacy.md,src/content/sv/privacy.md). Short-lived, user-initiated form stateis still strictly necessary and consent-exempt, but the policy should say so rather than be quietly
outgrown.
Notes
emailed link), so there is nothing secret to echo back.
from a default.
src/pages/api/resend-setup-link.ts:34-40), one field.Part of gitborg/gitborg-docs#69.
supernaut refererade till detta ärende från bitborg/bitborg-docs2026-08-02 12:32:47 +00:00