src/AppBundle/Controller/User/ResettingController.php
/**
     * Tell the user to check his email provider.
     *
     * @param Request $request
     *
     * @return Response
     */
Tell the user to check his email provider.
@param Request $request

@return Response
Tell the user to check his email provider . @param Request $request @return Response
public function checkEmailAction(Request $request)
    {
        $username = $request->query->get('username');
        if (empty($username)) {
            return new RedirectResponse($this->generateUrl('fos_user_resetting_request'));
        }
        return $this->render(':user\Resetting:check_email.html.twig', array(
            'tokenLifetime' => ceil($this->container->getParameter('fos_user.resetting.retry_ttl') / 3600),
        ));
    }
public function checkEmailAction ( Request $ request ) { $ username = $ request -> query -> get ( 'username' ) ; if ( empty ( $ username ) ) { return new RedirectResponse ( $ this -> generateUrl ( 'fos_user_resetting_request' ) ) ; } return $ this -> render ( ':user\Resetting:check_email.html.twig' , array ( 'tokenLifetime' => ceil ( $ this -> container -> getParameter ( 'fos_user.resetting.retry_ttl' ) / 3600 ) , ) ) ; }
Tell the user to check his email provider.
Tell the user to check his email provider .
// the user does not come from the sendEmail action