Description
Add the ability to disable user self-registration (signup) through an environment variable. When disabled, the signup endpoint should return a 403 Forbidden response and the signup UI should be hidden or show an appropriate message.
Use Case
This feature is useful for:
- Private/internal deployments where only invited users should have access
- Controlled onboarding where administrators want to manually create accounts or use invitation-only flows
- Security hardening to prevent unauthorized account creation during sensitive periods
- Enterprise deployments where user provisioning is handled through SSO or external identity providers
Proposed Solution
Add a SIGNUP_ENABLED environment variable that controls whether self-registration is allowed