[gatein-commits] gatein SVN: r4815 - portal/branches/branch-GTNPORTAL-1592/webui/portal/src/main/java/org/exoplatform/portal/webui/login.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Oct 25 04:06:56 EDT 2010


Author: phuong_vu
Date: 2010-10-25 04:06:56 -0400 (Mon, 25 Oct 2010)
New Revision: 4815

Modified:
   portal/branches/branch-GTNPORTAL-1592/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UILoginForm.java
Log:
GTNPORTAL-1579 Remove SigninActionListener from UILoginForm

Modified: portal/branches/branch-GTNPORTAL-1592/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UILoginForm.java
===================================================================
--- portal/branches/branch-GTNPORTAL-1592/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UILoginForm.java	2010-10-25 08:06:26 UTC (rev 4814)
+++ portal/branches/branch-GTNPORTAL-1592/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UILoginForm.java	2010-10-25 08:06:56 UTC (rev 4815)
@@ -39,7 +39,6 @@
  * Jul 11, 2006  
  */
 @ComponentConfig(lifecycle = UIFormLifecycle.class, template = "system:/groovy/portal/webui/UILoginForm.gtmpl", events = {
-   //    @EventConfig(listeners = UILoginForm.SigninActionListener.class),
    @EventConfig(phase = Phase.DECODE, listeners = UIMaskWorkspace.CloseActionListener.class),
    @EventConfig(phase = Phase.DECODE, listeners = UILoginForm.ForgetPasswordActionListener.class)})
 public class UILoginForm extends UIForm
@@ -58,37 +57,6 @@
          InitiateLoginServlet.COOKIE_NAME, Boolean.TRUE.toString()));
    }
 
-   static public class SigninActionListener extends EventListener<UILoginForm>
-   {
-
-      public void execute(Event<UILoginForm> event) throws Exception
-      {
-         //      UILoginForm uiForm = event.getSource();
-         //      String username = uiForm.getUIStringInput(USER_NAME).getValue();
-         //      String password = uiForm.getUIStringInput(PASSWORD).getValue();      
-         //      OrganizationService orgService = uiForm.getApplicationComponent(OrganizationService.class);      
-         //      boolean authentication = orgService.getUserHandler().authenticate(username, password);
-         //      if(!authentication){
-         //        throw new MessageException(new ApplicationMessage("UILoginForm.msg.Invalid-account", null));
-         //      }        
-         //      PortalRequestContext prContext = Util.getPortalRequestContext();
-         //      HttpServletRequest request = prContext.getRequest();
-         //      HttpSession session = request.getSession();
-         //      session.setAttribute("authentication.username", username);
-         //      session.setAttribute("authentication.password", password);
-         //      UIPortal uiPortal = Util.getUIPortal();
-         //      prContext.setResponseComplete(true);  
-         //      String portalName = uiPortal.getName() ;
-         //      HttpServletRequestWrapper wrapper = new HttpServletRequestWrapper(request) ;
-         //      wrapper.getParameterMap().put("username", username) ;
-         //      wrapper.getParameterMap().put("password", password) ;
-         //      portalName = URLEncoder.encode(portalName, "UTF-8") ;
-         //      String redirect = request.getContextPath() + "/private/" + portalName + "/";
-         //      prContext.getResponse().sendRedirect(redirect);      
-      }
-
-   }
-
    //TODO: dang.tung - forget password
    static public class ForgetPasswordActionListener extends EventListener<UILoginForm>
    {



More information about the gatein-commits mailing list