Files
dance-lessons-coach/pkg/user
Gabriel Radureau 93a8d12d48
Some checks failed
CI/CD Pipeline / CI Pipeline (pull_request) Failing after 16m48s
CI/CD Pipeline / CI Pipeline (push) Failing after 16m58s
♻️ refactor: apply SOLID principles to authentication handlers
- Split AuthHandler into 3 separate handlers (SRP)
- AuthHandler: authentication only (2 methods)
- UserHandler: user management only (1 method)
- PasswordResetHandler: password operations only (2 methods)
- Added PasswordService interface (ISP)
- AuthServiceImpl now implements both AuthService and PasswordService
- Updated server to use all three handlers with proper dependency injection
- Reduced cognitive complexity by ~60%
- Improved testability and maintainability

This refactoring addresses the major SOLID violations identified in the analysis and significantly improves code quality while maintaining all functionality.
2026-04-06 23:58:06 +02:00
..