Commit Graph

20 Commits

Author SHA1 Message Date
fabio f35fcbc875 feat: add signup page, authentication middleware, user password update functionality, and roles API endpoint
- Created a new signup page in the frontend application.
- Implemented authentication middleware to validate access tokens and retrieve claims.
- Added functionality to update user passwords and revoke sessions in the user repository.
- Introduced an API endpoint to fetch user roles with TypeScript support.

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 22:37:59 +02:00
fabio b260daffed Refactor TypeScript RPC codebase and API structure
- Simplified error handling in `getFieldInfo` and `getFieldTsInfo` functions.
- Removed unused `getSourceInfo` function and its references.
- Updated `getStruct` method in `TSStruct` to eliminate source info retrieval.
- Cleaned up `TSSouces` population logic by commenting out unnecessary debug statements.
- Adjusted TypeScript source generation to use type imports instead of default imports.
- Consolidated API endpoints into dedicated files for better organization (admin, systemUtils, users).
- Introduced new types for API responses and requests to enhance type safety.
- Removed redundant code and comments from generated API files.
- Updated frontend components to reflect new API structure and types.
- Ensured consistent naming conventions and type usage across the codebase.
2026-04-26 14:31:25 +02:00
fabio 3461395eb3 feat(tsrpc): enhance TypeScript API generation with improved endpoint handling and imports
- Added a new function `GetApiFile` to generate the TypeScript API file dynamically based on environment variables.
- Updated `TSEndpoint` struct to include an `Imports` map for tracking TypeScript imports.
- Enhanced `VerifyTypes` method to manage request and response types more effectively, including nullable types.
- Modified `ToTs` method to generate TypeScript code with improved type handling.
- Introduced `TSFiles` struct for managing generated TypeScript files and saving them to the filesystem.
- Implemented formatting of generated TypeScript code using Prettier.
- Added new TypeScript files for various endpoints, including user management and system utilities.
- Updated existing TypeScript files to reflect changes in API structure and response types.
2026-04-15 18:25:31 +02:00
fabio 5b9fe6c9b7 Refactor configuration and database initialization: replace LoadConfig with GetConfig, introduce DbConfig struct, and streamline token service retrieval. Remove unused request types and enhance user refresh token handling. 2026-04-09 09:21:38 +02:00
fabio 3731e6e409 Refactor user management module: rename package, restructure user controller, and implement authentication features
- Renamed package from `user` to `users` for clarity.
- Updated UserController to include token service for authentication.
- Implemented user login, registration, password reset, and token validation functionalities.
- Introduced user roles and permissions management.
- Added session tracking for user logins.
- Created migration script for user-related database tables.
- Refactored user model to include details and preferences.
- Enhanced password handling with secure hashing and verification.
- Updated routes to include new authentication endpoints and middleware.
2026-04-06 21:37:06 +02:00
fabio b3741f86c8 Add signup and email templates for user registration and password reset
- Created a new HTML file for the signup page at `backend/spa/signup/index.html`.
- Added HTML and plain text templates for password reset emails at `backend/templates/mailTemplates/password_reset.html.tmpl` and `backend/templates/mailTemplates/password_reset.txt.tmpl`.
- Added HTML and plain text templates for registration confirmation emails at `backend/templates/mailTemplates/registration.html.tmpl` and `backend/templates/mailTemplates/registration.txt.tmpl`.
2026-04-05 20:46:35 +02:00
fabio 36fca2af6c Refactor authentication module: Introduce AuthController and endpoints, implement login, registration, password reset, and token management functionalities. Update routes and services to utilize new structures and improve code organization. Enhance user management with detailed error handling and session management. Update API response types and ensure consistent naming conventions across the application. 2026-04-05 17:09:01 +02:00
fabio 6920d7ae95 chore: update .gitignore to include __debug_bin* and remove debug binary file 2026-04-05 16:58:34 +02:00
fabio 13a198da82 refactor: remove test role YAML configuration call from main function 2026-03-24 20:13:33 +01:00
fabio e917953d6c feat: add role management with roles and permissions configuration 2026-03-24 20:12:35 +01:00
fabio e69e1623b5 feat: add tooltip component and related position engine
- Introduced a new tooltip component (QTooltip) in logo-DdmK5n0b.js for enhanced UI interactions.
- Added position engine logic in position-engine-BHgB6lrx.js to manage tooltip positioning dynamically.
- Implemented selection utility in selection-DrSF90ET.js to handle text selection across different browsers.
- Created a use-quasar hook in use-quasar-B5tVCAcV.js for improved integration with Quasar framework.
2026-03-19 19:13:39 +01:00
fabio 3646b406bb Refactor code structure for improved readability and maintainability 2026-03-19 19:07:45 +01:00
fabio d716da1b69 aggiunto mappa 2026-03-19 18:58:33 +01:00
fabio b62661003c Add new services.html file to the project 2026-03-19 18:50:10 +01:00
fabio 71bb9ea5c3 feat: add authentication pages for login, password recovery, and signup
- Created LoginPage.vue for user login functionality with email and password fields.
- Implemented RecoverPasswordPage.vue to allow users to request a password recovery email.
- Developed SignupPage.vue for new user registration, including form validation and success state.
2026-03-18 19:23:35 +01:00
fabio 5ae8b3e0de qualche modifica 2026-03-16 20:25:45 +01:00
fabio 8d27800fa7 DS_store removed 2026-03-16 20:14:18 +01:00
fabio 99e3cb388b readme 2026-03-16 20:08:44 +01:00
fabio 2c7e9caf45 first commit 2026-03-16 20:03:59 +01:00
fabio da69069e1b Initial commit 2026-03-16 18:54:26 +00:00