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 { ...@@ -172,10 +172,13 @@ public class DirectControlServlet extends HttpServlet {
172 String authToken = request.getParameter("sessionId"); 172 String authToken = request.getParameter("sessionId");
173 if (authToken != null) { 173 if (authToken != null) {
174 GenericValue authTokenEntity = EntityUtil.getFirst( 174 GenericValue authTokenEntity = EntityUtil.getFirst(
175 delegator.findList("Visit", 175 EntityUtil.filterByDate(
176 EntityCondition.makeCondition("cookie", 176 delegator.findList("Visit",
177 EntityOperator.EQUALS, authToken), 177 EntityCondition.makeCondition("cookie",
178 null, null, null, true)); 178 EntityOperator.EQUALS, authToken),
179 null, null, null, true)
180 )
181 );
179 182
180 if (authTokenEntity != null && 183 if (authTokenEntity != null &&
181 authTokenEntity.get("userLoginId") != null) { 184 authTokenEntity.get("userLoginId") != null) {
......