var/cache/dev/twig/29/29503205a20a1191472975d2155216ce.php line 43

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_dbfb015f3d454648e057ff1e40dbdcc1 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. }
  31. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32. {
  33. // line 1
  34. return "@PimcoreAdmin/Admin/Login/layout.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PimcoreAdmin/Admin/Login/lostpassword.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PimcoreAdmin/Admin/Login/lostpassword.html.twig"));
  43. $this->parent = $this->load("@PimcoreAdmin/Admin/Login/layout.html.twig", 1);
  44. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. }
  48. // line 3
  49. /**
  50. * @return iterable<null|scalar|\Stringable>
  51. */
  52. public function block_content(array $context, array $blocks = []): iterable
  53. {
  54. $macros = $this->macros;
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  59. // line 4
  60. yield "
  61. ";
  62. // line 5
  63. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 5), "method", [], "any", false, false, false, 5) == "POST")) {
  64. // line 6
  65. yield " <div class=\"text error\">
  66. ";
  67. // line 7
  68. 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", null, true);
  69. yield "
  70. <br/>
  71. ";
  72. // line 9
  73. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please check your mailbox.", [], "admin"), "html", null, true);
  74. yield "
  75. </div>
  76. ";
  77. } else {
  78. // line 12
  79. yield " <div class=\"text info\">
  80. ";
  81. // line 13
  82. 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", null, true);
  83. yield "
  84. </div>
  85. <form method=\"post\" action=\"";
  86. // line 16
  87. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_admin_login_lostpassword");
  88. yield "\">
  89. <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"";
  90. // line 17
  91. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("username", [], "admin"), "html", null, true);
  92. yield "\" required autofocus>
  93. <input type=\"hidden\" name=\"csrfToken\" value=\"";
  94. // line 18
  95. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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", false, false, false, 18), "html", null, true);
  96. yield "\">
  97. <button type=\"submit\" name=\"submit\">";
  98. // line 20
  99. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("submit", [], "admin"), "html", null, true);
  100. yield "</button>
  101. </form>
  102. ";
  103. }
  104. // line 23
  105. yield "
  106. <a href=\"";
  107. // line 24
  108. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_admin_login");
  109. yield "\">";
  110. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Back to Login", [], "admin"), "html", null, true);
  111. yield "</a>
  112. ";
  113. // line 26
  114. yield $this->extensions['Pimcore\Twig\Extension\HelpersExtension']->breachAttackRandomContent();
  115. yield "
  116. ";
  117. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  118. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119. yield from [];
  120. }
  121. /**
  122. * @codeCoverageIgnore
  123. */
  124. public function getTemplateName(): string
  125. {
  126. return "@PimcoreAdmin/Admin/Login/lostpassword.html.twig";
  127. }
  128. /**
  129. * @codeCoverageIgnore
  130. */
  131. public function isTraitable(): bool
  132. {
  133. return false;
  134. }
  135. /**
  136. * @codeCoverageIgnore
  137. */
  138. public function getDebugInfo(): array
  139. {
  140. return array ( 133 => 26, 126 => 24, 123 => 23, 117 => 20, 112 => 18, 108 => 17, 104 => 16, 98 => 13, 95 => 12, 89 => 9, 84 => 7, 81 => 6, 79 => 5, 76 => 4, 63 => 3, 40 => 1,);
  141. }
  142. public function getSourceContext(): Source
  143. {
  144. return new Source("{% extends '@PimcoreAdmin/Admin/Login/layout.html.twig' %}
  145. {% block content %}
  146. {% if app.request.method == 'POST' %}
  147. <div class=\"text error\">
  148. {{ 'A temporary login link has been sent to your email address.'|trans([],'admin') }}
  149. <br/>
  150. {{ 'Please check your mailbox.'|trans([],'admin') }}
  151. </div>
  152. {% else %}
  153. <div class=\"text info\">
  154. {{ 'Enter your username and pimcore will send a login link to your email address'|trans([],'admin') }}
  155. </div>
  156. <form method=\"post\" action=\"{{ path('pimcore_admin_login_lostpassword') }}\">
  157. <input type=\"text\" name=\"username\" autocomplete=\"username\" placeholder=\"{{ 'username'|trans([], 'admin') }}\" required autofocus>
  158. <input type=\"hidden\" name=\"csrfToken\" value=\"{{ pimcore_csrf.getCsrfToken() }}\">
  159. <button type=\"submit\" name=\"submit\">{{ 'submit'|trans([],'admin') }}</button>
  160. </form>
  161. {% endif %}
  162. <a href=\"{{ path('pimcore_admin_login') }}\">{{ 'Back to Login'|trans([],'admin') }}</a>
  163. {{ pimcore_breach_attack_random_content() }}
  164. {% endblock %}
  165. ", "@PimcoreAdmin/Admin/Login/lostpassword.html.twig", "/home/pim/pim-world/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/lostpassword.html.twig");
  166. }
  167. }