feat: add configurable registration openness via SNEK_REGISTRATION_OPEN env var
Introduce a new Config class in snek/system/config.py that reads environment variables, including SNEK_REGISTRATION_OPEN, to control whether user registration is allowed. The Application now loads this config and passes it to templates and views. The register.html template conditionally shows either the registration form or an invitation-only message based on config.registration_open. The RegisterView returns a 403 JSON error when registration is closed. Version bumped to 1.11.0 and CHANGELOG updated accordingly.
This commit is contained in:
@@ -11,6 +11,14 @@
|
||||
|
||||
|
||||
|
||||
|
||||
## Version 1.11.0 - 2025-12-19
|
||||
|
||||
Adds the ability to configure whether user registration is open or closed via system settings. Administrators can now toggle registration openness to control access to the registration form.
|
||||
|
||||
**Changes:** 5 files, 262 lines
|
||||
**Languages:** HTML (185 lines), Python (77 lines)
|
||||
|
||||
## Version 1.10.0 - 2025-12-19
|
||||
|
||||
Users must now receive an invitation to register for an account, as open registration is disabled.
|
||||
|
||||
Reference in New Issue
Block a user