Skip to content

feat: add REGISTRATION_ENABLED env var to disable signups#105

Merged
alexneamtu merged 3 commits intomainfrom
feature/disable-registration
Mar 2, 2026
Merged

feat: add REGISTRATION_ENABLED env var to disable signups#105
alexneamtu merged 3 commits intomainfrom
feature/disable-registration

Conversation

@alexneamtu
Copy link
Contributor

@alexneamtu alexneamtu commented Mar 2, 2026

Summary

  • Add REGISTRATION_ENABLED env var (default true) to control user signups
  • Backend: Register handler returns 403 when disabled; health endpoint exposes registrationEnabled
  • Frontend: Register page redirects to /login when disabled; Login page hides "Sign up" link
  • Docs: SELF-HOSTING.md and OpenAPI spec updated

Closes #104.

Test Plan

  • Go tests pass (18 packages)
  • Frontend tests pass (676 tests, 37 files)
  • TypeScript typecheck passes
  • Manual: set REGISTRATION_ENABLED=false, verify /register redirects to /login
  • Manual: verify Login page hides "Sign up" link
  • Manual: verify POST /api/auth/register returns 403

Closes #104.

- Backend: guard on Register handler returns 403 when disabled
- Health endpoint exposes registrationEnabled for frontend
- Frontend: Register redirects to /login, Login hides sign-up link
- Default: true (registration enabled), set to "false" to disable
@github-actions
Copy link

github-actions bot commented Mar 2, 2026

Preview deployed: https://pr-105.app.sendrec.eu

- Staging: remove Docker Hub publish, Coolify builds from repo on deploy
- Preview: replace SSH + docker run with Coolify API (PATCH branch + deploy)
- Docker images now only published on production releases (v* tags)
Replace single shared preview app with dynamic per-PR app creation.
Each PR gets its own Coolify app (sendrec-pr-{N}) with a unique URL
(pr-{N}.app.sendrec.eu). Apps are auto-deleted on PR close.
@alexneamtu alexneamtu merged commit fbbc81f into main Mar 2, 2026
4 checks passed
@alexneamtu alexneamtu deleted the feature/disable-registration branch March 2, 2026 17:18
@github-actions
Copy link

github-actions bot commented Mar 2, 2026

Preview environment cleaned up.

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.

Flag or env to disable signups

1 participant