feat: Improve the initial setup experience

- Issue a single-use token for initial account creation
- Disable registration through other methods until the first account is made
- Print helpful instructions to the console on the first run
- Improve the welcome message sent in the admin room on first run
This commit is contained in:
Ginger authored and Ellis Git committed 2026-02-15 18:05:42 +00:00
1 parent 11a088be5d
commit 047eba0442
14 files changed
+373 -143

No files matched your search

+6 -2
View File
@@ -149,8 +149,12 @@ impl Services {
debug_info!("Services startup complete.");
// print first-run banner if necessary
self.firstrun.print_banner();
// Run startup admin commands
self.admin.startup_execute().await?;
// Prin first-run banner if necessary. This needs to be done after the startup
// admin commands are run in case one of them created the first user.
self.firstrun.print_first_run_banner();
Ok(Arc::clone(self))
}