var/cache/dev/twig/5e/5e96a9323744d3ff3c923950b1f79192.php line 40

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_5ecd91bcf9d52623efab6587b43fa16a 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, ($context["app"] ?? null), "request", [], "any"falsefalsetrue5), "method", [], "any"falsefalsetrue5) == "POST")) {
  60.             // line 6
  61.             echo "        <div class=\"text error\">
  62.             ";
  63.             // line 7
  64.             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);
  65.             echo "
  66.             <br/>
  67.             ";
  68.             // line 9
  69.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please check your mailbox.", [], "admin"), "html"nulltrue);
  70.             echo "
  71.         </div>
  72.     ";
  73.         } else {
  74.             // line 12
  75.             echo "        <div class=\"text info\">
  76.             ";
  77.             // line 13
  78.             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);
  79.             echo "
  80.         </div>
  81.         <form method=\"post\" action=\"";
  82.             // line 16
  83.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_admin_login_lostpassword");
  84.             echo "\">
  85.             <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"";
  86.             // line 17
  87.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("username", [], "admin"), "html"nulltrue);
  88.             echo "\" required autofocus>
  89.             <input type=\"hidden\" name=\"csrfToken\" value=\"";
  90.             // line 18
  91.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["pimcore_csrf"] ?? null), "getCsrfToken", [], "method"falsefalsetrue18), 18$this->source), "html"nulltrue);
  92.             echo "\">
  93.             <button type=\"submit\" name=\"submit\">";
  94.             // line 20
  95.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("submit", [], "admin"), "html"nulltrue);
  96.             echo "</button>
  97.         </form>
  98.     ";
  99.         }
  100.         // line 23
  101.         echo "
  102.     <a href=\"";
  103.         // line 24
  104.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_admin_login");
  105.         echo "\">";
  106.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to Login", [], "admin"), "html"nulltrue);
  107.         echo "</a>
  108.     ";
  109.         // line 26
  110.         echo $this->extensions['Pimcore\Twig\Extension\HelpersExtension']->breachAttackRandomContent();
  111.         echo "
  112. ";
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.     }
  118.     public function getTemplateName()
  119.     {
  120.         return "@PimcoreAdmin/Admin/Login/lostpassword.html.twig";
  121.     }
  122.     public function isTraitable()
  123.     {
  124.         return false;
  125.     }
  126.     public function getDebugInfo()
  127.     {
  128.         return array (  127 => 26,  120 => 24,  117 => 23,  111 => 20,  106 => 18,  102 => 17,  98 => 16,  92 => 13,  89 => 12,  83 => 9,  78 => 7,  75 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  129.     }
  130.     public function getSourceContext()
  131.     {
  132.         return new Source("{% extends '@PimcoreAdmin/Admin/Login/layout.html.twig' %}
  133. {% block content %}
  134.     {% if app.request.method == 'POST' %}
  135.         <div class=\"text error\">
  136.             {{ 'A temporary login link has been sent to your email address.'|trans([],'admin') }}
  137.             <br/>
  138.             {{ 'Please check your mailbox.'|trans([],'admin') }}
  139.         </div>
  140.     {% else %}
  141.         <div class=\"text info\">
  142.             {{ 'Enter your username and pimcore will send a login link to your email address'|trans([],'admin') }}
  143.         </div>
  144.         <form method=\"post\" action=\"{{ path('pimcore_admin_login_lostpassword') }}\">
  145.             <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"{{ 'username'|trans([], 'admin') }}\" required autofocus>
  146.             <input type=\"hidden\" name=\"csrfToken\" value=\"{{ pimcore_csrf.getCsrfToken() }}\">
  147.             <button type=\"submit\" name=\"submit\">{{ 'submit'|trans([],'admin') }}</button>
  148.         </form>
  149.     {% endif %}
  150.     <a href=\"{{ path('pimcore_admin_login') }}\">{{ 'Back to Login'|trans([],'admin') }}</a>
  151.     {{ pimcore_breach_attack_random_content() }}
  152. {% endblock %}
  153. ""@PimcoreAdmin/Admin/Login/lostpassword.html.twig""/var/www/html/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig");
  154.     }
  155.     
  156.     public function checkSecurity()
  157.     {
  158.         static $tags = array("if" => 5);
  159.         static $filters = array("escape" => 7"trans" => 7);
  160.         static $functions = array("path" => 16"pimcore_breach_attack_random_content" => 26);
  161.         try {
  162.             $this->sandbox->checkSecurity(
  163.                 ['if'],
  164.                 ['escape''trans'],
  165.                 ['path''pimcore_breach_attack_random_content']
  166.             );
  167.         } catch (SecurityError $e) {
  168.             $e->setSourceContext($this->source);
  169.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  170.                 $e->setTemplateLine($tags[$e->getTagName()]);
  171.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  172.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  173.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  174.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  175.             }
  176.             throw $e;
  177.         }
  178.     }
  179. }