d5a902c6 by Jerry Pommer

Resolve #3199 - Add date filtering to visit query.

1 parent 72178d74
......@@ -172,10 +172,13 @@ public class DirectControlServlet extends HttpServlet {
String authToken = request.getParameter("sessionId");
if (authToken != null) {
GenericValue authTokenEntity = EntityUtil.getFirst(
delegator.findList("Visit",
EntityCondition.makeCondition("cookie",
EntityOperator.EQUALS, authToken),
null, null, null, true));
EntityUtil.filterByDate(
delegator.findList("Visit",
EntityCondition.makeCondition("cookie",
EntityOperator.EQUALS, authToken),
null, null, null, true)
)
);
if (authTokenEntity != null &&
authTokenEntity.get("userLoginId") != null) {
......