v0.22.1: Fix setup wizard bugs (detection, CSRF panic, version display, IP)
- NeedsSetup: only check for empty customer.id (not "demo-felhom") - renderError: pass *http.Request to ensureCSRFToken (was nil → panic) - Welcome template: remove redundant "v" prefix from version display - IP detection: read HOST_IP env var for Docker container awareness - docker-setup.sh: inject HOST_IP into generated docker-compose.yml - Add logging for Hub config download in setup wizard Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,8 +12,9 @@ import (
|
||||
)
|
||||
|
||||
// NeedsSetup checks whether the controller should enter setup mode.
|
||||
// Setup is needed when no customer ID has been configured (empty string).
|
||||
func NeedsSetup(cfg *config.Config) bool {
|
||||
return cfg.Customer.ID == "" || cfg.Customer.ID == "demo-felhom"
|
||||
return cfg.Customer.ID == ""
|
||||
}
|
||||
|
||||
// SetupState persists wizard progress to survive browser crashes.
|
||||
|
||||
Reference in New Issue
Block a user