Commit Graph
14 Commits
Author SHA1 Message Date
1sonhador c1ddf3548d fix: Corrigir comentários em Português - remover gerúndio incorreto
- Substituir "usando" por "com" ou "através de" onde apropriado
- Corrigir "adicionar à fila para depois" para "adicionar à fila para processamento posterior"
- Melhorar clareza e correção gramatical nos comentários
2025-10-30 10:03:01 +00:00
1sonhador 0283e966a9 MoneyFlix: Add remaining assets and source maps
- Add source maps and license files for compiled assets
- Add debug and test files for development
- Complete Git repository with all necessary files for MoneyFlix project
2025-10-22 18:09:55 +01:00
1sonhador 97eca96f83 MoneyFlix: Add Auth module, fix error monitoring, improve lock screen functionality
- Add complete Auth module with login, logout, lock screen functionality
- Fix 401 error on error monitoring page by adding /error-monitoring/ to public patterns
- Improve lock screen with proper form handling and unlock functionality
- Add RoleModel and role management views
- Add BaseModel for common model functionality
- Update authentication system and middleware
- Add troubleshooting documentation
- Update assets and build tools
2025-10-22 18:09:43 +01:00
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 c8e92ead2e fix: Use apiOrAuth instead of requireAuth for user API routes
- Change all user API routes to use apiOrAuth middleware
- This allows API access with Bearer token authentication
- Fixes 302 redirects for API endpoints
2025-10-15 14:30:11 +01:00
1sonhador 4656a0877b fix: Add last_login column to users table
- Create migration AddLastLoginToUsers to add last_login column
- Revert UserModel to use last_login column in queries
- Proper solution: add missing column instead of removing from code
2025-10-15 14:27:23 +01:00
1sonhador 57f9a715c2 fix: Remove non-existent last_login column from UserModel queries
- Fix getAllForAdmin method to not select last_login column
- Fix findForAdmin method to not select last_login column
- Users table doesn't have last_login column
2025-10-15 14:26:26 +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 88a5659fe8 fix: Correct user permissions and UserModel query
- Fix storage permissions to use 'www' user instead of 'www-data'
- Fix UserModel getAllForAdmin query to avoid placeholders in LIMIT/OFFSET
- Import missing modules: Advertising, Dashboard, Analytics
- Update deploy script to copy files to public directory
2025-10-15 14:14:00 +01:00
1sonhador 2cab67b1ab fix: Add missing Auth class and UserModel methods
- Import Auth.php from old CRM to fix authentication
- Add getAllForAdmin, getTotalForAdmin, findForAdmin methods to UserModel
- Fix admin users API endpoints functionality
- Resolve 'Erro ao carregar utilizadores' error
2025-10-15 13:45:44 +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