8000
Skip to content

Enforce signup checks consistently across all registration paths - #1748

Open
thebaer wants to merge 1 commit into
developfrom
fix-signup-paths
Open

Enforce signup checks consistently across all registration paths#1748
thebaer wants to merge 1 commit into
developfrom
fix-signup-paths

Conversation

@thebaer
@thebaer thebaer commented Aug 20, 2026
Copy link
Copy Markdown
Member

Previously, registration eligibility (closed registration, invite validity, and password-auth availability) was checked inconsistently depending on the endpoint, including /api/auth/signup, /oauth/signup, and instances with password auth disabled.

Funnels all paths (web, API, OAuth) through a single canRegister() gate so the checks can't be bypassed by picking a different endpoint, and includes the invite code in the OAuth signature. Extends the invite validation from #1724 to the API and OAuth paths it didn't cover. Also adds regression tests covering each path.


  • I have signed the CLA

Previously, registration eligibility (closed registration, invite
validity, and password-auth availability) was checked inconsistently
depending on the endpoint, including /api/auth/signup, /oauth/signup,
and instances with password auth disabled.

Funnels all paths (web, API, OAuth) through a single canRegister() gate so
the checks can't be bypassed by picking a different endpoint, and includes
the invite code in the OAuth signature. Extends the invite validation from
#1724 to the API and OAuth paths it didn't cover. Also adds regression
tests covering each path.
@thebaer thebaer added this to the 0.18 milestone Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0