Skip to content

feat(cli): allow configuring initial admin username and email#1302

Merged
perber merged 3 commits into
mainfrom
feat/admin-username-email
Jul 13, 2026
Merged

feat(cli): allow configuring initial admin username and email#1302
perber merged 3 commits into
mainfrom
feat/admin-username-email

Conversation

@perber

@perber perber commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Add optional --admin-username/--admin-email flags (and matching LEAFWIKI_ADMIN_USERNAME/LEAFWIKI_ADMIN_EMAIL env vars), following the existing CLI>ENV>default resolver pattern. Both stay optional and default to the previous hardcoded admin/admin@localhost when unset.

@perber
perber force-pushed the feat/admin-username-email branch from cb9765d to 1d076fd Compare July 13, 2026 14:53
perber added 3 commits July 13, 2026 22:52
Add optional --admin-username/--admin-email flags (and matching
LEAFWIKI_ADMIN_USERNAME/LEAFWIKI_ADMIN_EMAIL env vars), following the
existing CLI>ENV>default resolver pattern. Both stay optional and
default to the previous hardcoded admin/admin@localhost when unset.
…login-url

When loginUrl is configured, RequireAuth now appends the originally
requested path as a redirect_uri query param instead of dropping it, and
UserToolbar/ExternalRedirect share one redirectToExternal() helper instead
of three separate window.location.href assignments.
@perber
perber force-pushed the feat/admin-username-email branch from 5ce546a to 3ad607d Compare July 13, 2026 20:53
@perber
perber merged commit b8535dd into main Jul 13, 2026
9 checks passed
@perber
perber deleted the feat/admin-username-email branch July 17, 2026 13:46
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.

1 participant