Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDemoFixtures ¶
EnsureDemoFixtures creates a "Demo" organization with seed-like data when ENABLE_DEMO_FIXTURES is set. Idempotent: if an org named "Demo" already exists, nothing is done. Run on startup after EnsureInitialAdmin.
func EnsureInitialAdmin ¶
EnsureInitialAdmin creates the first admin when INITIAL_ADMIN_EMAIL is set and no users exist. When oauthEnabled is true, INITIAL_ADMIN_PASSWORD is optional; otherwise both email and password are required. Also accepts INTIAL_ADMIN_EMAIL (missing N) as a common typo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.