SurfSense/surfsense_web/components
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
..
chat Refactor register page 2025-11-17 08:10:12 +02:00
contact Add ai bot suggestions 2025-10-17 16:48:10 +02:00
editConnector Merge remote-tracking branch 'upstream/main' into feature/elasticsearch-connector 2025-10-16 16:24:37 +05:30
homepage Implement dynamic site appearance configuration system 2025-11-18 10:58:31 +00:00
onboard feat: improved onboarding 2025-11-16 15:54:54 -08:00
pricing fix pricing 2025-10-21 08:14:06 -07:00
providers feat(removed): sub_section_writer 2025-10-27 20:30:10 -07:00
settings feat: added global llm configurations 2025-11-14 21:53:46 -08:00
sidebar feat: improved onboarding 2025-11-16 15:54:54 -08:00
sources refactor(ux): combined sources to one section 2025-11-07 14:28:30 -08:00
theme feat: contact to frontpage and biome 2025-09-30 21:53:10 -07:00
ui feat(llm): expand LLM provider options and improve model selection UI 2025-11-13 02:41:30 -08:00
announcement-banner.tsx Refactor register page 2025-11-17 08:10:12 +02:00
copy-button.tsx Biome: fixes for compontents directory 2025-07-27 10:41:15 -07:00
dashboard-breadcrumb.tsx clean up 2025-11-17 08:10:12 +02:00
document-viewer.tsx Biome: fixes for compontents directory 2025-07-27 10:41:15 -07:00
inference-params-editor.tsx chore: biome checks 2025-10-15 14:38:26 -07:00
json-metadata-viewer.tsx Biome: fixes for compontents directory 2025-07-27 10:41:15 -07:00
LanguageSwitcher.tsx feat(removed): sub_section_writer 2025-10-27 20:30:10 -07:00
Logo.tsx Biome: fixes for compontents directory 2025-07-27 10:41:15 -07:00
markdown-viewer.tsx feat: added jump to source referencing of citations 2025-08-23 18:48:18 -07:00
pricing.tsx chore: suggested changes 2025-10-27 08:37:08 -07:00
RouteGuard.tsx Add disable_registration toggle to site configuration 2025-11-18 14:28:16 +02:00
search-space-form.tsx feat: contact to frontpage and biome 2025-09-30 21:53:10 -07:00
TokenHandler.tsx Biome: fixes for compontents directory 2025-07-27 10:41:15 -07:00
UserDropdown.tsx feat: moved LLMConfigs from User to SearchSpaces 2025-10-10 00:50:29 -07:00