var/cache/dev/twig/5f/5fbef83d37514751401c94f16bf33796.php line 45

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