- 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> |
||
|---|---|---|
| .. | ||
| AdminController.cs | ||
| AuthController.cs | ||
| BootstrapController.cs | ||
| LessonsController.cs | ||
| LevelsController.cs | ||
| MistralController.cs | ||
| QuizQuestionsController.cs | ||
| QuizzesController.cs | ||
| SpeechController.cs | ||
| StoryController.cs | ||
| TtsController.cs | ||