isLoggedIn()) { $this->_redirect('customer/account'); return; } $session->setEscapeMessages(true); // prevent XSS injection in user input if ($this->getRequest()->isPost()) { $data = $this->getRequest()->getPost(); $honeypot=$data['country_field']; if ($honeypot) { $session->setCustomerFormData($this->getRequest()->getPost()); $session->addError($this->__('Invalid customer data. Please, fill all fields')); }else { $request = Mage::app()->getRequest(); $request->initForward() ->setControllerName('account') ->setModuleName('customer') ->setActionName('createPost') ->setDispatched(false); return false; } } $this->_redirectError(Mage::getUrl('customer/account/create', array('_secure' => true))); } }