mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
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:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user