var/cache/dev/twig/d5/d56a3363502ff175211cc3e63274d34f.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_02a25e748cf715ba193aaeefc9ba77fb 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->load("@PimcoreAdmin/Admin/Login/layout.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 "        ";
  70.             if ((($tmp =  !array_key_exists("reset_error"$context)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  71.                 // line 7
  72.                 yield "            <div class=\"text success\">
  73.                 ";
  74.                 // line 8
  75.                 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);
  76.                 yield "
  77.                 <br/>
  78.                 ";
  79.                 // line 10
  80.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please check your mailbox.", [], "admin"), "html"nulltrue);
  81.                 yield "
  82.             </div>
  83.         ";
  84.             } else {
  85.                 // line 13
  86.                 yield "            <div class=\"text error\">
  87.                 ";
  88.                 // line 14
  89.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("An error occured when resetting password:", [], "admin"), "html"nulltrue);
  90.                 yield "
  91.                 ";
  92.                 // line 15
  93.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($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);
  94.                 yield "
  95.                 <br/>
  96.                 ";
  97.                 // line 17
  98.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please retry again later or contact an administrator.", [], "admin"), "html"nulltrue);
  99.                 yield "
  100.             </div>
  101.         ";
  102.             }
  103.             // line 20
  104.             yield "    ";
  105.         } else {
  106.             // line 21
  107.             yield "        <div class=\"text info\">
  108.             ";
  109.             // line 22
  110.             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);
  111.             yield "
  112.         </div>
  113.         <form method=\"post\" action=\"";
  114.             // line 25
  115.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_admin_login_lostpassword");
  116.             yield "\">
  117.             <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"";
  118.             // line 26
  119.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("username", [], "admin"), "html"nulltrue);
  120.             yield "\" required autofocus>
  121.             <input type=\"hidden\" name=\"csrfToken\" value=\"";
  122.             // line 27
  123.             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.'27$this->source); })()), "getCsrfToken", [], "method"falsefalsetrue27), 27$this->source), "html"nulltrue);
  124.             yield "\">
  125.             <button type=\"submit\" name=\"submit\">";
  126.             // line 29
  127.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("submit", [], "admin"), "html"nulltrue);
  128.             yield "</button>
  129.         </form>
  130.     ";
  131.         }
  132.         // line 32
  133.         yield "
  134.     <a href=\"";
  135.         // line 33
  136.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_admin_login");
  137.         yield "\">";
  138.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to Login", [], "admin"), "html"nulltrue);
  139.         yield "</a>
  140.     ";
  141.         // line 35
  142.         yield $this->extensions['Pimcore\Twig\Extension\HelpersExtension']->breachAttackRandomContent();
  143.         yield "
  144. ";
  145.         
  146.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  147.         
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  149.         yield from [];
  150.     }
  151.     /**
  152.      * @codeCoverageIgnore
  153.      */
  154.     public function getTemplateName(): string
  155.     {
  156.         return "@PimcoreAdmin/Admin/Login/lostpassword.html.twig";
  157.     }
  158.     /**
  159.      * @codeCoverageIgnore
  160.      */
  161.     public function isTraitable(): bool
  162.     {
  163.         return false;
  164.     }
  165.     /**
  166.      * @codeCoverageIgnore
  167.      */
  168.     public function getDebugInfo(): array
  169.     {
  170.         return array (  159 => 35,  152 => 33,  149 => 32,  143 => 29,  138 => 27,  134 => 26,  130 => 25,  124 => 22,  121 => 21,  118 => 20,  112 => 17,  107 => 15,  103 => 14,  100 => 13,  94 => 10,  89 => 8,  86 => 7,  83 => 6,  81 => 5,  78 => 4,  65 => 3,  42 => 1,);
  171.     }
  172.     public function getSourceContext(): Source
  173.     {
  174.         return new Source("{% extends '@PimcoreAdmin/Admin/Login/layout.html.twig' %}
  175. {% block content %}
  176.     {% if app.request.method == 'POST' %}
  177.         {% if reset_error is not defined %}
  178.             <div class=\"text success\">
  179.                 {{ 'A temporary login link has been sent to your email address.'|trans([],'admin') }}
  180.                 <br/>
  181.                 {{ 'Please check your mailbox.'|trans([],'admin') }}
  182.             </div>
  183.         {% else %}
  184.             <div class=\"text error\">
  185.                 {{ 'An error occured when resetting password:'|trans([],'admin') }}
  186.                 {{ reset_error|trans([],'admin') }}
  187.                 <br/>
  188.                 {{ 'Please retry again later or contact an administrator.'|trans([],'admin') }}
  189.             </div>
  190.         {% endif %}
  191.     {% else %}
  192.         <div class=\"text info\">
  193.             {{ 'Enter your username and pimcore will send a login link to your email address'|trans([],'admin') }}
  194.         </div>
  195.         <form method=\"post\" action=\"{{ path('pimcore_admin_login_lostpassword') }}\">
  196.             <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"{{ 'username'|trans([], 'admin') }}\" required autofocus>
  197.             <input type=\"hidden\" name=\"csrfToken\" value=\"{{ pimcore_csrf.getCsrfToken() }}\">
  198.             <button type=\"submit\" name=\"submit\">{{ 'submit'|trans([],'admin') }}</button>
  199.         </form>
  200.     {% endif %}
  201.     <a href=\"{{ path('pimcore_admin_login') }}\">{{ 'Back to Login'|trans([],'admin') }}</a>
  202.     {{ pimcore_breach_attack_random_content() }}
  203. {% endblock %}
  204. ""@PimcoreAdmin/Admin/Login/lostpassword.html.twig""/var/www/html/project_ncm_alertportal/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig");
  205.     }
  206.     
  207.     public function checkSecurity()
  208.     {
  209.         static $tags = ["extends" => 1"if" => 5];
  210.         static $filters = ["escape" => 8"trans" => 8];
  211.         static $functions = ["path" => 25"pimcore_breach_attack_random_content" => 35];
  212.         try {
  213.             $this->sandbox->checkSecurity(
  214.                 ['extends''if'],
  215.                 ['escape''trans'],
  216.                 ['path''pimcore_breach_attack_random_content'],
  217.                 $this->source
  218.             );
  219.         } catch (SecurityError $e) {
  220.             $e->setSourceContext($this->source);
  221.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  222.                 $e->setTemplateLine($tags[$e->getTagName()]);
  223.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  224.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  225.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  226.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  227.             }
  228.             throw $e;
  229.         }
  230.     }
  231. }