var/cache/dev/twig/88/887dcdb505af43a3f6a1f5aad8da589c.php line 60

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @PimcoreAdmin/Admin/Login/lostpassword.html.twig */
  14. class __TwigTemplate_b8babf0163cae2228a77c1670bdab3a1 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this, 'block_content'],
  24.         ];
  25.         $this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@PimcoreAdmin/Admin/Login/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros = $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PimcoreAdmin/Admin/Login/lostpassword.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PimcoreAdmin/Admin/Login/lostpassword.html.twig"));
  40.         $this->parent = $this->loadTemplate("@PimcoreAdmin/Admin/Login/layout.html.twig", "@PimcoreAdmin/Admin/Login/lostpassword.html.twig", 1);
  41.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros = $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  55.         // line 4
  56.         echo "
  57.     ";
  58.         // line 5
  59.         if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 5, $this->source); })()), "request", [], "any", false, false, true, 5), "method", [], "any", false, false, true, 5) == "POST")) {
  60.             // line 6
  61.             echo "        ";
  62.             if ( !array_key_exists("reset_error", $context)) {
  63.                 // line 7
  64.                 echo "            <div class=\"text success\">
  65.                 ";
  66.                 // line 8
  67.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("A temporary login link has been sent to your email address.", [], "admin"), "html", null, true);
  68.                 echo "
  69.                 <br/>
  70.                 ";
  71.                 // line 10
  72.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please check your mailbox.", [], "admin"), "html", null, true);
  73.                 echo "
  74.             </div>
  75.         ";
  76.             } else {
  77.                 // line 13
  78.                 echo "            <div class=\"text error\">
  79.                 ";
  80.                 // line 14
  81.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("An error occured when resetting password:", [], "admin"), "html", null, true);
  82.                 echo "
  83.                 ";
  84.                 // line 15
  85.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed((isset($context["reset_error"]) || array_key_exists("reset_error", $context) ? $context["reset_error"] : (function () { throw new RuntimeError('Variable "reset_error" does not exist.', 15, $this->source); })()), 15, $this->source), [], "admin"), "html", null, true);
  86.                 echo "
  87.                 <br/>
  88.                 ";
  89.                 // line 17
  90.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please retry again later or contact an administrator.", [], "admin"), "html", null, true);
  91.                 echo "
  92.             </div>
  93.         ";
  94.             }
  95.             // line 20
  96.             echo "    ";
  97.         } else {
  98.             // line 21
  99.             echo "        <div class=\"text info\">
  100.             ";
  101.             // line 22
  102.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter your username and pimcore will send a login link to your email address", [], "admin"), "html", null, true);
  103.             echo "
  104.         </div>
  105.         <form method=\"post\" action=\"";
  106.             // line 25
  107.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_admin_login_lostpassword");
  108.             echo "\">
  109.             <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"";
  110.             // line 26
  111.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("username", [], "admin"), "html", null, true);
  112.             echo "\" required autofocus>
  113.             <input type=\"hidden\" name=\"csrfToken\" value=\"";
  114.             // line 27
  115.             echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["pimcore_csrf"]) || array_key_exists("pimcore_csrf", $context) ? $context["pimcore_csrf"] : (function () { throw new RuntimeError('Variable "pimcore_csrf" does not exist.', 27, $this->source); })()), "getCsrfToken", [], "method", false, false, true, 27), 27, $this->source), "html", null, true);
  116.             echo "\">
  117.             <button type=\"submit\" name=\"submit\">";
  118.             // line 29
  119.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("submit", [], "admin"), "html", null, true);
  120.             echo "</button>
  121.         </form>
  122.     ";
  123.         }
  124.         // line 32
  125.         echo "
  126.     <a href=\"";
  127.         // line 33
  128.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_admin_login");
  129.         echo "\">";
  130.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to Login", [], "admin"), "html", null, true);
  131.         echo "</a>
  132.     ";
  133.         // line 35
  134.         echo $this->extensions['Pimcore\Twig\Extension\HelpersExtension']->breachAttackRandomContent();
  135.         echo "
  136. ";
  137.         
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  139.         
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  141.     }
  142.     public function getTemplateName()
  143.     {
  144.         return "@PimcoreAdmin/Admin/Login/lostpassword.html.twig";
  145.     }
  146.     public function isTraitable()
  147.     {
  148.         return false;
  149.     }
  150.     public function getDebugInfo()
  151.     {
  152.         return array (  151 => 35,  144 => 33,  141 => 32,  135 => 29,  130 => 27,  126 => 26,  122 => 25,  116 => 22,  113 => 21,  110 => 20,  104 => 17,  99 => 15,  95 => 14,  92 => 13,  86 => 10,  81 => 8,  78 => 7,  75 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  153.     }
  154.     public function getSourceContext()
  155.     {
  156.         return new Source("{% extends '@PimcoreAdmin/Admin/Login/layout.html.twig' %}
  157. {% block content %}
  158.     {% if app.request.method == 'POST' %}
  159.         {% if reset_error is not defined %}
  160.             <div class=\"text success\">
  161.                 {{ 'A temporary login link has been sent to your email address.'|trans([],'admin') }}
  162.                 <br/>
  163.                 {{ 'Please check your mailbox.'|trans([],'admin') }}
  164.             </div>
  165.         {% else %}
  166.             <div class=\"text error\">
  167.                 {{ 'An error occured when resetting password:'|trans([],'admin') }}
  168.                 {{ reset_error|trans([],'admin') }}
  169.                 <br/>
  170.                 {{ 'Please retry again later or contact an administrator.'|trans([],'admin') }}
  171.             </div>
  172.         {% endif %}
  173.     {% else %}
  174.         <div class=\"text info\">
  175.             {{ 'Enter your username and pimcore will send a login link to your email address'|trans([],'admin') }}
  176.         </div>
  177.         <form method=\"post\" action=\"{{ path('pimcore_admin_login_lostpassword') }}\">
  178.             <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"{{ 'username'|trans([], 'admin') }}\" required autofocus>
  179.             <input type=\"hidden\" name=\"csrfToken\" value=\"{{ pimcore_csrf.getCsrfToken() }}\">
  180.             <button type=\"submit\" name=\"submit\">{{ 'submit'|trans([],'admin') }}</button>
  181.         </form>
  182.     {% endif %}
  183.     <a href=\"{{ path('pimcore_admin_login') }}\">{{ 'Back to Login'|trans([],'admin') }}</a>
  184.     {{ pimcore_breach_attack_random_content() }}
  185. {% endblock %}
  186. ", "@PimcoreAdmin/Admin/Login/lostpassword.html.twig", "/home/imvmqwwt/pimprod.imv-b2b.de/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig");
  187.     }
  188.     
  189.     public function checkSecurity()
  190.     {
  191.         static $tags = array("if" => 5);
  192.         static $filters = array("escape" => 8, "trans" => 8);
  193.         static $functions = array("path" => 25, "pimcore_breach_attack_random_content" => 35);
  194.         try {
  195.             $this->sandbox->checkSecurity(
  196.                 ['if'],
  197.                 ['escape', 'trans'],
  198.                 ['path', 'pimcore_breach_attack_random_content']
  199.             );
  200.         } catch (SecurityError $e) {
  201.             $e->setSourceContext($this->source);
  202.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  203.                 $e->setTemplateLine($tags[$e->getTagName()]);
  204.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  205.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  206.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  207.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  208.             }
  209.             throw $e;
  210.         }
  211.     }
  212. }