auth: Register entry beside Sign in, behind a config switch (off) #68
Loading…
Reference in a new issue
No description provided.
Delete branch "void/register-entry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Per Heimdall, a Register entry beside Sign in, behind a config switch that defaults off.
config.registration {enabled, url}: off in code and inconfig.json. The url is the account service's own registration page (placeholder, empty); this client invents no route.notice version N. Both come fromtrainingNotice.ts;TRAINING_NOTICE_VERSION = 1is new there, the one number the room notice shares. Off: nothing from this PR renders and the existing in-client Register link stays as it was. On: the entry replaces that link, so there is one door./signed-up/is the return page, in our voice: "Follow the steps from the sign-up page to finish. Then sign in here." No promise about mail. With the switch off the route redirects to sign in.Tests (
registrationEntry.test.ts, 5): hidden when absent/off, ships off in config.json, hidden for empty/relative/non-web urls, text and version equaltrainingNotice.ts's, pretend sentence on the preview server. Vitest 16 passing in the touched files, prettier and eslint clean. Not rendered in a browser; no react test renderer in the repo, so the components are covered through the pureregistrationEntry.Open for Libby (front-door path): the url allowlist is http(s) only; where MAS sends people back to is MAS's config, this PR only provides
/signed-up/. Not merged, not deployed.🤖 Generated with Claude Code
config.registration {enabled, url}: off by default and in config.json. When on with a http(s) url, the sign-in page shows Register (a link to the account service's own page) with the consent sentence and its version, both read from trainingNotice.ts (new TRAINING_NOTICE_VERSION shared with the room notice). /signed-up/ is the return page: it says to follow the steps from the sign-up page and promises nothing about mail; with the switch off it redirects to sign in. Off keeps the existing Register link. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>137fb5a96ce070008d46e070008d463f86551ba4fbec0322efa4942eef86