Author: hoang_to
Date: 2009-11-11 06:53:10 -0500 (Wed, 11 Nov 2009)
New Revision: 569
Modified:
portal/trunk/component/web/src/main/java/org/exoplatform/web/login/InitiateLoginServlet.java
Log:
GTNPORTAL-126: First login without 'Remember me' option fails
Modified:
portal/trunk/component/web/src/main/java/org/exoplatform/web/login/InitiateLoginServlet.java
===================================================================
---
portal/trunk/component/web/src/main/java/org/exoplatform/web/login/InitiateLoginServlet.java 2009-11-11
11:22:01 UTC (rev 568)
+++
portal/trunk/component/web/src/main/java/org/exoplatform/web/login/InitiateLoginServlet.java 2009-11-11
11:53:10 UTC (rev 569)
@@ -74,14 +74,16 @@
cookie.setPath(req.getContextPath());
cookie.setMaxAge(0);
resp.addCookie(cookie);
- // This allows the customer to define another login page without changing
the portal
+ // This allows the customer to define another login page without
+ // changing the portal
context.getRequestDispatcher("/login/jsp/login.jsp").include(req, resp);
return;
}
}
else
{
- // This allows the customer to define another login page without changing the
portal
+ // This allows the customer to define another login page without
+ // changing the portal
context.getRequestDispatcher("/login/jsp/login.jsp").include(req,
resp);
return;
}
@@ -95,8 +97,12 @@
{
if (InitiateLoginServlet.COOKIE_NAME.equals(cookie.getName()))
{
- token = cookie.getValue();
- break;
+ String rememberme = req.getParameter(COOKIE_NAME);
+ if (rememberme != null)
+ {
+ token = cookie.getValue();
+ break;
+ }
}
}
if (token == null)
Show replies by date