Skip to content

Login page: say "Create Account" when registration is auto-approved - #492

Open
SkrawlCO wants to merge 1 commit into
awehttam:claudesbbsfrom
SkrawlCO:upstream/up-039-register-link-approval-mode
Open

SkrawlCO wants to merge 1 commit into
awehttam:claudesbbsfrom
SkrawlCO:upstream/up-039-register-link-approval-mode

Conversation

@SkrawlCO

@SkrawlCO SkrawlCO commented Oct 5, 2026

Copy link
Copy Markdown

TITLE: Login page: say "Create Account" when registration is auto-approved

Problem

The login page always labels the registration link "Request Access" (ui.login.request_access), even when registration does not require sysop approval (BbsConfig::shouldRequireRegistrationApproval() is false) and new accounts can be used immediately.

Impact

Visitors to auto-approve boards are told they must request access, which suggests a review wait that doesn't exist and discourages sign-ups.

Repair

The /login route passes registration_requires_approval, and login.twig picks ui.login.request_access or the existing ui.register.create_account key for both link locations. The template defaults to the approval wording if the variable is absent. No new translation keys; both keys exist in every locale.

Proof

tests/Unit/LoginRegisterLinkContractTest.php (8 tests) fails on the current branch (4 failures) and passes with the change. The rest of tests/Unit is unchanged.

The registration link always read "Request Access", even when new
accounts are approved automatically.

Pass the approval mode to login.twig and use the existing
ui.register.create_account key when no approval is required.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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