Esempio n. 1
0
 public function esqueciSenhaAction()
 {
     if ($this->getRequest()->isPost()) {
         $email = $this->getRequest()->getPost('email');
         $_serviceAuth = new AuthService();
         if ($_serviceAuth->recoveryPasswordCliente($email)) {
             $this->_helper->flashMessenger->addMessage('Email de recuperação enviado com sucesso!');
             $this->_redirect('/acesso/');
         } else {
             $this->_helper->flashMessenger->addMessage('Erro ao enviar email de recuperação!');
             $this->_redirect('/acesso/');
         }
     }
 }