var/cache/dev/twig/47/47c4a995e4c392075dba75e58322f313.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_ba7d30388547781f8c6b23be4d2ad210 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($contextarray_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->sourcetwig_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"falsefalsetrue5), "method", [], "any"falsefalsetrue5) == "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"nulltrue);
  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"nulltrue);
  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"nulltrue);
  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"nulltrue);
  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"nulltrue);
  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"nulltrue);
  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"nulltrue);
  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"falsefalsetrue27), 27$this->source), "html"nulltrue);
  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"nulltrue);
  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"nulltrue);
  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.     /**
  143.      * @codeCoverageIgnore
  144.      */
  145.     public function getTemplateName()
  146.     {
  147.         return "@PimcoreAdmin/Admin/Login/lostpassword.html.twig";
  148.     }
  149.     /**
  150.      * @codeCoverageIgnore
  151.      */
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     /**
  157.      * @codeCoverageIgnore
  158.      */
  159.     public function getDebugInfo()
  160.     {
  161.         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,);
  162.     }
  163.     public function getSourceContext()
  164.     {
  165.         return new Source("{% extends '@PimcoreAdmin/Admin/Login/layout.html.twig' %}
  166. {% block content %}
  167.     {% if app.request.method == 'POST' %}
  168.         {% if reset_error is not defined %}
  169.             <div class=\"text success\">
  170.                 {{ 'A temporary login link has been sent to your email address.'|trans([],'admin') }}
  171.                 <br/>
  172.                 {{ 'Please check your mailbox.'|trans([],'admin') }}
  173.             </div>
  174.         {% else %}
  175.             <div class=\"text error\">
  176.                 {{ 'An error occured when resetting password:'|trans([],'admin') }}
  177.                 {{ reset_error|trans([],'admin') }}
  178.                 <br/>
  179.                 {{ 'Please retry again later or contact an administrator.'|trans([],'admin') }}
  180.             </div>
  181.         {% endif %}
  182.     {% else %}
  183.         <div class=\"text info\">
  184.             {{ 'Enter your username and pimcore will send a login link to your email address'|trans([],'admin') }}
  185.         </div>
  186.         <form method=\"post\" action=\"{{ path('pimcore_admin_login_lostpassword') }}\">
  187.             <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"{{ 'username'|trans([], 'admin') }}\" required autofocus>
  188.             <input type=\"hidden\" name=\"csrfToken\" value=\"{{ pimcore_csrf.getCsrfToken() }}\">
  189.             <button type=\"submit\" name=\"submit\">{{ 'submit'|trans([],'admin') }}</button>
  190.         </form>
  191.     {% endif %}
  192.     <a href=\"{{ path('pimcore_admin_login') }}\">{{ 'Back to Login'|trans([],'admin') }}</a>
  193.     {{ pimcore_breach_attack_random_content() }}
  194. {% endblock %}
  195. ""@PimcoreAdmin/Admin/Login/lostpassword.html.twig""/var/www/dev-10/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig");
  196.     }
  197.     
  198.     public function checkSecurity()
  199.     {
  200.         static $tags = array("if" => 5);
  201.         static $filters = array("escape" => 8"trans" => 8);
  202.         static $functions = array("path" => 25"pimcore_breach_attack_random_content" => 35);
  203.         try {
  204.             $this->sandbox->checkSecurity(
  205.                 ['if'],
  206.                 ['escape''trans'],
  207.                 ['path''pimcore_breach_attack_random_content']
  208.             );
  209.         } catch (SecurityError $e) {
  210.             $e->setSourceContext($this->source);
  211.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  212.                 $e->setTemplateLine($tags[$e->getTagName()]);
  213.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  214.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  215.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  216.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  217.             }
  218.             throw $e;
  219.         }
  220.     }
  221. }