SurfSense/surfsense_web/app
Ojārs Kapteinis b8bb74ec3e Add disable_registration toggle to site configuration
Implemented comprehensive registration control system that allows administrators to disable new user registrations through the admin panel. This provides better control over user access and supports closed registration scenarios.

Backend changes:
- Added disable_registration field to SiteConfiguration model (db.py)
- Created migration #39 to add disable_registration column with default false
- Updated SiteConfigurationBase, Update, and Read schemas
- Enhanced registration_allowed() dependency to check database toggle
- Returns 403 with clear message when registration is disabled

Frontend changes:
- Added disable_registration to SiteConfig interface and default config
- Updated LocalLoginForm to conditionally hide "Sign up" link when disabled
- Added RouteGuard support for "registration" route key
- Protected /register page with RouteGuard (shows 404 when disabled)
- Added "Registration Control" section to admin site-settings page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 14:28:16 +02:00
..
(home) Add disable_registration toggle to site configuration 2025-11-18 14:28:16 +02:00
api feat: contact to frontpage and biome 2025-09-30 22:15:55 -07:00
auth/callback Initial formatting using biome 2025-07-27 10:05:37 -07:00
dashboard Add disable_registration toggle to site configuration 2025-11-18 14:28:16 +02:00
db try vercel fix 2025-09-30 22:45:04 -07:00
docs Initial formatting using biome 2025-07-27 10:05:37 -07:00
favicon.ico feat: monorepo 2025-04-07 23:47:06 -07:00
globals.css Initial formatting using biome 2025-07-27 10:05:37 -07:00
layout.config.tsx Initial formatting using biome 2025-07-27 10:05:37 -07:00
layout.tsx Implement dynamic site appearance configuration system 2025-11-18 10:58:31 +00:00
sitemap.ts chore: updated sitemap 2025-10-02 18:13:30 -07:00