Controller/Frontend/ResettingController.php
public function checkEmailAction()
    {
        $session = $this->get('session');
        $email = $session->get(static::SESSION_EMAIL);
        $session->remove(static::SESSION_EMAIL);

        if (empty($email)) {
            return new RedirectResponse($this->get('router')->generate('miky_app_customer_resetting_request'));
        }

        return $this->render('MikyUserBundle:Frontend/Resetting:checkEmail.html.twig', array(
            'email' => $email,
        ));
    }
public function checkEmailAction()
    {
        $session = $this->get('session');
        $email = $session->get(static::SESSION_EMAIL);
        $session->remove(static::SESSION_EMAIL);

        if (empty($email)) {
            return new RedirectResponse($this->get('router')->generate('miky_app_customer_resetting_request'));
        }

        return $this->render('MikyUserBundle:Frontend/Resetting:checkEmail.html.twig', array(
            'email' => $email,
        ));
    }
public function checkEmailAction ( ) { $ session = $ this -> get ( 'session' ) ; $ email = $ session -> get ( static :: SESSION_EMAIL ) ; $ session -> remove ( static :: SESSION_EMAIL ) ; if ( empty ( $ email ) ) { return new RedirectResponse ( $ this -> get ( 'router' ) -> generate ( 'miky_app_customer_resetting_request' ) ) ; } return $ this -> render ( 'MikyUserBundle:Frontend/Resetting:checkEmail.html.twig' , array ( 'email' => $ email , ) ) ; }
Tell the user to check his email provider
Tell the user to check his email provider