Ejemplo n.º 1
0
 public function lostPasswordAction()
 {
     if ($this->getRequest()->isPost()) {
         try {
             $user = \App::getUserLogged();
             $this->_userSrv->sendLostPasswordLink($user);
             $this->view->data = true;
         } catch (\Exception $e) {
             throw new UnexpectedException("Unable to send email");
         }
     } else {
         throw new ForbiddenException("LostPassword action must be a post request");
     }
 }