86211923db
Repository Interface Optimization: - Created IBaseRepository.ts and IPaginatedRepository.ts - Refactored all 7 repository interfaces to extend base interfaces - Eliminated ~200 lines of redundant code (70% reduction) - Improved type safety and maintainability Dependency Injection Improvements: - Added EmailService and GameTokenService to DIContainer - Updated CreateUserCommandHandler constructor for DI - Updated RequestPasswordResetCommandHandler constructor for DI - Enhanced testability and service consistency Environment Configuration: - Created comprehensive .env.example with 40+ variables - Organized into 12 logical sections (Database, Security, Email, etc.) - Added security guidelines and best practices - Documented all backend environment requirements Documentation: - Added comprehensive codebase review - Created refactoring summary report - Added frontend implementation guide Impact: Improved code quality, reduced maintenance overhead, enhanced developer experience
6 lines
430 B
SQL
6 lines
430 B
SQL
-- Update test user passwords with correctly hashed password123
|
|
UPDATE "Users" SET password = '$2b$10$dPXxS9Byg7AbB.fngFtNWel1llS1nHJlQrTO4zQToy7vVitS9mr96' WHERE username IN ('john_doe', 'jane_premium', 'teacher_bob', 'admin_user', 'new_user');
|
|
|
|
-- Verify the update
|
|
SELECT username, LEFT(password, 20) AS password_hash, state FROM "Users" WHERE username IN ('john_doe', 'jane_premium', 'teacher_bob', 'admin_user', 'new_user');
|