var/cache/dev/twig/94/94f3df1ce784ea46c835544f720d5977.php line 55

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