public function checkEmailAction()
 {
     if ($this->userAlreadyLoggedIn()) {
         $router = $this->container->get('router');
         return new RedirectResponse($router->generate('fos_user_profile_edit'), 302);
     }
     return parent::checkEmailAction();
 }
 /**
  * Tell the user to check his email provider
  */
 public function checkEmailAction()
 {
     $this->get('session')->remove('registration_authorized');
     return parent::checkEmailAction();
 }