Skip to content

feat: hide signup link from login when DISABLE_SIGNUPS is set#379

Open
taniasanz7 wants to merge 1 commit into
useplunk:nextfrom
taniasanz7:patch-16-hide-signup-when-disabled
Open

feat: hide signup link from login when DISABLE_SIGNUPS is set#379
taniasanz7 wants to merge 1 commit into
useplunk:nextfrom
taniasanz7:patch-16-hide-signup-when-disabled

Conversation

@taniasanz7
Copy link
Copy Markdown
Contributor

@taniasanz7 taniasanz7 commented May 16, 2026

Description

Quick follow up on #371

signupsDisabled currently just disables signups on the backend, but the signup link is still visible and you can still try to signup until you see the error message. So this is mostly a cosmetic / UX PR:

Expose signupsDisabled on the public GET /config endpoint so the dashboard can reflect the API's DISABLE_SIGNUPS env flag.

  • Conditionally hide the "Sign up" link on the login page when signups are disabled, so visitors don't get routed to a form that always rejects with "New user signups are currently disabled".
image
  • Replace the signup form with a friendly "Signups are disabled" notice if a visitor navigates to /auth/signup directly
image

Pure UX patch. Does not change the signup endpoint's existing behavior (200 with success:false when disabled) and exposes only the signup-disabled flag - no secrets or admin-only env state.

Type of Change

  • feat: New feature (MINOR version bump)
  • fix: Bug fix (PATCH version bump)
  • feat!: Breaking change - new feature (MAJOR version bump)
  • fix!: Breaking change - bug fix (MAJOR version bump)
  • docs: Documentation update (no version bump)
  • chore: Maintenance/dependencies (no version bump)
  • refactor: Code refactoring (no version bump)
  • test: Adding tests (no version bump)
  • perf: Performance improvement (PATCH version bump)

Testing

Setting DISABLE_SIGNUPS and then visiting /auth/signup and /auth/login (see screenshots above)

Checklist

  • PR title follows conventional commits format
  • Code builds successfully
  • Tests pass locally
  • Documentation updated (if needed)

Related Issues

#371

@taniasanz7 taniasanz7 force-pushed the patch-16-hide-signup-when-disabled branch from c4c463f to 3c87cd3 Compare May 17, 2026 13:47
Expose `signupsDisabled` on the public `GET /config` endpoint so the
dashboard can reflect the API's `DISABLE_SIGNUPS` env flag.

- Conditionally hide the "Sign up" link on the login page when
  signups are disabled, so visitors don't get routed to a form
  that always rejects with "New user signups are currently disabled".
- Replace the signup form with a friendly "Signups are disabled"
  notice if a visitor navigates to /auth/signup directly.

Pure UX patch. Does not change the signup endpoint's existing
behavior (200 with success:false when disabled) and exposes only
the signup-disabled flag - no secrets or admin-only env state.
@taniasanz7 taniasanz7 force-pushed the patch-16-hide-signup-when-disabled branch from 3c87cd3 to 1a68b68 Compare May 17, 2026 13:57
@taniasanz7
Copy link
Copy Markdown
Contributor Author

@driaug if you see no value in this feel free to close; it's a tiny thing but thought it's a quick and simple UI/UX addition for self hosters

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