79215975 by Ean Schuessler

Merge branch 'BF-3199' of /home/git/repositories/brainfood/ofbiz-directcontrolservlet

2 parents 0e66cc15 d5a902c6
......@@ -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) {
......