signup: record the terms version that is actually in force #323
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
priority
high
priority
low
priority
medium
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#323
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?
What
TERMS_VERSIONinsrc/pages/api/signup.tsis hand-kept in sync with the "Last updated" / "Senast uppdaterad" line of the terms and privacy pages. Each sign-up stores that constant insignups.terms_version. No check fails when the two drift.Why
The column proves which text a user accepted. It was stale once already (since fixed: it is
2026-10-11now). The "keep in sync" comment still has no check behind it.Failing case
Edit the date on
terms.md, forget the constant. New sign-ups store a version that was already replaced.Fix
src/content/{sv,en}/terms.mdandprivacy.md.TERMS_VERSION.Done when