code: public function checkEmailAction()
      {
          $session = $this->container->get('session');
          $email = $session->get(static::SESSION_EMAIL);
          $session->remove(static::SESSION_EMAIL);
          if (empty($email)) {
              // the user does not come from the sendEmail action
              return new RedirectResponse($this->container->get('router')->generate('sonata_user_admin_resetting_check_email'));
          }
          return $this->container->get('templating')->renderResponse('SonataUserBundle:Admin:Security/Resetting/checkEmail.html.' . $this->getEngine(), array(
              'email' => $email,
              'base_template' => $this->container->get('sonata.admin.pool')->getTemplate('layout'),
              'admin_pool' => $this->container->get('sonata.admin.pool'),
          ));
      }
docs: {@inheritdoc}