DeutschLernen/GermanApp/Presentation/Controllers
Lasse Rune Hansen 42778ec34b fix(backend/auth): Fix authentication bugs
- Fix case-insensitive email lookups in AuthService (RegisterAsync, LoginAsync, CreateAdminUserAsync)
- Fix User.Create factory method to explicitly set Role property (C# object initializer behavior)
- Assign Admin role to seeded admin user in SeedDataExtension
- Add [AllowAnonymous] to Register and Login endpoints in AuthController (defensive programming)
- Increase JWT ClockSkew to 5 minutes for clock difference tolerance

These fixes resolve issues where:
- Login fails with 401 due to case-sensitive email comparison
- User role is null instead of 'User' or 'Admin'
- JWT token validation too strict on clock synchronization

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-14 16:40:01 +02:00
..
AdminController.cs feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
AuthController.cs fix(backend/auth): Fix authentication bugs 2026-06-14 16:40:01 +02:00
BootstrapController.cs feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
LessonsController.cs feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
LevelsController.cs feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
MistralController.cs feat(backend/ai-services): Complete AI Services Phase 0-4 implementation 2026-06-13 10:09:19 +02:00
QuizQuestionsController.cs feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
QuizzesController.cs feat(backend): Implement mandatory authentication and admin module 2026-06-14 12:42:15 +02:00
SpeechController.cs feat(backend/ai-services): Complete AI Services Phase 0-4 implementation 2026-06-13 10:09:19 +02:00
StoryController.cs feat(docs/admin): Add Admin Module feature specification and update roadmap 2026-06-14 11:45:55 +02:00
TtsController.cs feat(backend/ai-services): Complete AI Services Phase 0-4 implementation 2026-06-13 10:09:19 +02:00