public function viewLoginAction()
    {
        if ($this->getSecurityContext()->hasCustomerUser()) {
            // Redirect to home page
            return $this->generateRedirect(URL::getInstance()->getIndexPage());
        }

        return $this->render("login");
    }
public function viewLoginAction()
    {
        if ($this->getSecurityContext()->hasCustomerUser()) {
            // Redirect to home page
            return $this->generateRedirect(URL::getInstance()->getIndexPage());
        }

        return $this->render("login");
    }
public function viewLoginAction ( ) { if ( $ this -> getSecurityContext ( ) -> hasCustomerUser ( ) ) { // Redirect to home page return $ this -> generateRedirect ( URL :: getInstance ( ) -> getIndexPage ( ) ) ; } return $ this -> render ( "login" ) ; }
Display the register template if no customer logged
Display the register template if no customer logged