public function forgottenAction() { $proxy = new SxCms_Page_Proxy(); $this->view->page = $proxy->getPageById('27', null, $this->_getParam('lng', 'nl')); if ($this->getRequest()->isPost()) { $email = $this->_getParam('email'); $proxyUser = new SxModule_Members_Proxy(); $user = $proxyUser->checkLogin($email); if ($user) { $user = $proxyUser->getByEmail($email); $user->sendPassword(); $this->view->message = 'You will receive an e-mail with your account data in a few moments.'; } else { $this->view->error = 'This is not a valid e-mail address'; } } }