Implement critical security fixes from code review

This commit is contained in:
2025-09-29 05:26:29 +01:00
parent 8a7c07ead7
commit ec894ba529
4 changed files with 68 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ public class AuthController : ControllerBase
catch (Exception ex)
{
_logger.LogError(ex, "Error during login for user: {Username}", loginDto.Username);
return StatusCode(500, new { message = "An error occurred during login", error = ex.Message });
return StatusCode(500, new { message = "An error occurred during login" });
}
}
}