feat: Implement initial setup service for admin user creation
- Added `SetupService` to handle the generation and validation of setup tokens. - Integrated setup token generation during application startup if no admin users exist. - Created API endpoints for checking setup status and completing the initial setup. - Updated `AuthService` to include functionality for creating the initial admin user. - Enhanced error handling for setup and authentication processes. - Added frontend components for login and protected routes. - Implemented Zustand store for managing authentication state. - Updated Vite configuration to check setup status and serve the setup page if required. - Documented the initial setup process in `setup.md`.
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -2475,6 +2475,7 @@ dependencies = [
|
||||
"mockall",
|
||||
"nxmesh-core",
|
||||
"nxmesh-proto",
|
||||
"rand 0.8.5",
|
||||
"sea-orm",
|
||||
"sea-orm-migration",
|
||||
"serde",
|
||||
|
||||
Reference in New Issue
Block a user