Skip to content

LLM-735: open signup keeps the access-form code - #373

Merged
jeffdafoe merged 2 commits into
mainfrom
LLM-735-open-signup-code
Oct 9, 2026
Merged

jeffdafoe merged 2 commits into
mainfrom
LLM-735-open-signup-code

Conversation

@jeffdafoe

Copy link
Copy Markdown
Owner

LLM-735

With open_registration = true, register.html hid the code step and never read ?code= from the URL, so accounts made through the landing access form were never linked to their access request (invite stayed unused, email never reached the account).

  • register.html: when open, take ?code= from the URL into validatedCode (code step stays hidden).
  • registration.js: a shared inviteProblem() check for both the Phase 1 read and the Phase 3 FOR UPDATE re-read. Under open registration a bad, used or expired code is dropped and the signup goes code-less (host realm, no email) instead of a 400. Invite-only mode refuses exactly as before.
  • New registration.test.js (6 tests): good code links invite + email; used/expired/unknown codes fall back when open; a code lost under the row lock falls back when open; no-code open signup; invite-only still refuses. The two fallback tests fail against the old route.

Full suite: 282 pass.

Agent: Home

🤖 Generated with Claude Code

jeffdafoe and others added 2 commits October 9, 2026 16:32
With open registration on, register.html skipped the code step and never
read ?code= from the URL, so accounts made through the access form were
never linked to their request: the invite stayed unused and the email
stayed off the account.

The page now sends the URL code when open. The route drops a bad, used or
expired code (at the first read or under the row lock) and registers
code-less instead of refusing, since the code only links the request when
anyone may sign up. Invite-only mode still refuses a bad code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeffdafoe
jeffdafoe merged commit fd9a898 into main Oct 9, 2026
9 checks passed
@jeffdafoe
jeffdafoe deleted the LLM-735-open-signup-code branch October 9, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant