Spaces:
Runtime error
Runtime error
Commit History
-
feat: Implement separate login endpoints to distinguish between regular user and superadmin authentication.
chrisaka60c3319
-
Switches to maybe_single() and enables bulk user creation
chrisakaReplaces strict .single() queries with .maybe_single() across routes to handle missing records more gracefully and prevent exceptions. Updates user creation in space management to support bulk addition of multiple users at once, including rollback logic for partial failures. Also adds resend dependency for future email functionality.c877044
-
Refactor code structure for improved readability and maintainability
chrisakac605dd5
-
Refactor user authentication and permissions
chrisaka- Updated the authentication routes to replace `CurrentEspaceUser` with `CurrentUser` for consistency across the application. - Removed the user registration logic from the auth router, simplifying the login and token refresh processes. - Enhanced the user management routes to ensure proper role handling and permissions checks. - Adjusted the espace management routes to restrict access to superadmins only, ensuring better security. - Cleaned up the code by removing unnecessary comments and improving readability. - Updated the dossiers, clients, fichiers, paiements, and flash_cr routers to align with the new user authentication structure.0b02fda -
Refactor code structure for improved readability and maintainability
chrisaka430f98c