Commit Graph

4 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 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