Skip to content

Release 11.13.5#499

Merged
kaihaase merged 1 commit intomainfrom
develop
Feb 7, 2026
Merged

Release 11.13.5#499
kaihaase merged 1 commit intomainfrom
develop

Conversation

@kaihaase
Copy link
Member

@kaihaase kaihaase commented Feb 7, 2026

Add CoreSystemSetupModule for initial admin creation on fresh deployments

…h deployments

* Add CoreSystemSetupModule for initial admin creation on fresh deployments

Provides public REST endpoints (GET /api/system-setup/status, POST /api/system-setup/init)
to create the first admin user when zero users exist. Bypasses BetterAuth's disableSignUp
via internalAdapter, following the same pattern as Better-Auth's admin plugin.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix SystemSetup module DI error when BetterAuth is disabled

Only load CoreSystemSetupModule when BetterAuth is also enabled,
since it depends on CoreBetterAuthService internally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Enable SystemSetup by default with BetterAuth, add initialAdmin auto-creation via config/ENV

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Kai Haase <kai.haase@lenne.tech>
@kaihaase kaihaase merged commit dc668b5 into main Feb 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants