Commit Graph
6 Commits
Author SHA1 Message Date
1sonhador 10176fd47e feat: Add real user activity tracking system
- Create UserActivitiesTable migration for tracking user activities
- Create UserActivityModel for managing activity data
- Replace mock data in apiGetRecentActivity with real database data
- Remove all mock/fake data from the project
2025-10-15 14:37:59 +01:00
1sonhador f75573768c fix: Allow API key access to UserController::apiGetRecentActivity
- Apply same fix as apiGetUsers to allow API key authentication
- Check if user is logged in and admin, OR if using valid API key
2025-10-15 14:33:41 +01:00
1sonhador 298ed9cf32 fix: Allow API key access to UserController::apiGetUsers
- Check if user is logged in and admin, OR if using valid API key
- This allows API access with Bearer token authentication
- Fixes 'Acesso negado' error for API key requests
2025-10-15 14:33:03 +01:00
1sonhador f88fc2412b fix: Remove requireAuth call from UserController::apiGetUsers
- Remove redundant requireAuth call since apiOrAuth middleware handles authentication
- This was causing 'Authentication required' error even with valid API key
2025-10-15 14:32:28 +01:00
1sonhador f670e9301a fix: Add missing API routes and methods
- Add recent-activity route to Users module
- Add apiGetRecentActivity method to UserController
- Fix composer autoloader path in index.php
- Install composer dependencies on server
2025-10-15 14:23:57 +01:00
1sonhador 0d76c40980 feat: Import Users module from old CRM
- Copy complete Users module from CRM_Project
- Fix syntax error in UserController.php (trailing whitespace)
- Add admin users management functionality
- Include user profiles, roles, and permissions
- Add API endpoints for user management
2025-10-15 13:42:07 +01:00