DeutschLernen/GermanApp/Domain/Entities
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
..
Lesson.cs feat(backend/story-integration): Phase 1 - Database & Models 2026-06-13 13:23:12 +02:00
Level.cs feat(backend/story-integration): Phase 1 - Database & Models 2026-06-13 13:23:12 +02:00
Quiz.cs feat(backend): Complete Quiz System implementation 2026-06-13 07:41:46 +02:00
QuizQuestion.cs feat(backend): Complete Quiz System implementation 2026-06-13 07:41:46 +02:00
RefreshToken.cs feat(backend): complete unit tests for User Authentication feature 2026-06-05 17:07:15 +02:00
StoryProgress.cs feat(backend/story-integration): Phase 1 - Database & Models 2026-06-13 13:23:12 +02:00
StorySegment.cs feat(backend/story-integration): Phase 1 - Database & Models 2026-06-13 13:23:12 +02:00
User.cs fix(backend/auth): Fix authentication bugs 2026-06-14 16:40:01 +02:00
UserProgress.cs fix(backend): update Lesson entity and related code to use LevelId foreign key 2026-06-07 21:25:46 +02:00