var/cache/dev/twig/99/991e6510cb9670e401db942e7457422e.php line 54

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. /* security/login.html.twig */
  16. class __TwigTemplate_767bddbf457b8aba244be3e581dbb029 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.             'title' => [$this'block_title'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  44.         $this->parent $this->load("base.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_title(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         yield "Log in!";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         yield from [];
  68.     }
  69.     // line 5
  70.     /**
  71.      * @return iterable<null|scalar|\Stringable>
  72.      */
  73.     public function block_body(array $context, array $blocks = []): iterable
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         // line 6
  81.         yield "    <div class=\"login\">
  82.         <form method=\"post\">
  83.             ";
  84.         // line 8
  85.         if ((($tmp = (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'8$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  86.             // line 9
  87.             yield "                <div class=\"alert alert-danger\">";
  88.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'9$this->source); })()), "messageKey", [], "any"falsefalsefalse9), CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'9$this->source); })()), "messageData", [], "any"falsefalsefalse9), "security"), "html"nulltrue);
  89.             yield "</div>
  90.             ";
  91.         }
  92.         // line 11
  93.         yield "
  94.             ";
  95.         // line 12
  96.         if ((($tmp 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.'12$this->source); })()), "user", [], "any"falsefalsefalse12)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  97.             // line 13
  98.             yield "                <div class=\"mb-3\">
  99.                     You are logged in as ";
  100.             // line 14
  101.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.'14$this->source); })()), "user", [], "any"falsefalsefalse14), "userIdentifier", [], "any"falsefalsefalse14), "html"nulltrue);
  102.             yield ", <a href=\"";
  103.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  104.             yield "\">Logout</a> or go to the <a href=\"";
  105.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_homepage");
  106.             yield "\">Homepage</a>
  107.                 </div>
  108.             ";
  109.         }
  110.         // line 17
  111.         yield "
  112.             <h1 class=\"h3 mb-3 font-weight-normal\">Please sign in</h1>
  113.             <label for=\"inputUsername\">Username</label>
  114.             <input type=\"text\" value=\"";
  115.         // line 20
  116.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'20$this->source); })()), "html"nulltrue);
  117.         yield "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" autocomplete=\"username\" required autofocus>
  118.             <label for=\"inputPassword\">Password</label>
  119.             <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  120.             <input type=\"hidden\" name=\"_csrf_token\"
  121.                    value=\"";
  122.         // line 25
  123.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Bridge\Twig\Extension\CsrfRuntime')->getCsrfToken("authenticate"), "html"nulltrue);
  124.         yield "\"
  125.             >
  126.             ";
  127.         // line 38
  128.         yield "
  129.             <button class=\"btn btn-primary\" type=\"submit\">
  130.                 Sign in
  131.             </button>
  132.         </form>
  133.     </div>
  134. ";
  135.         
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.         yield from [];
  140.     }
  141.     /**
  142.      * @codeCoverageIgnore
  143.      */
  144.     public function getTemplateName(): string
  145.     {
  146.         return "security/login.html.twig";
  147.     }
  148.     /**
  149.      * @codeCoverageIgnore
  150.      */
  151.     public function isTraitable(): bool
  152.     {
  153.         return false;
  154.     }
  155.     /**
  156.      * @codeCoverageIgnore
  157.      */
  158.     public function getDebugInfo(): array
  159.     {
  160.         return array (  149 => 38,  143 => 25,  135 => 20,  130 => 17,  120 => 14,  117 => 13,  115 => 12,  112 => 11,  106 => 9,  104 => 8,  100 => 6,  87 => 5,  64 => 3,  41 => 1,);
  161.     }
  162.     public function getSourceContext(): Source
  163.     {
  164.         return new Source("{% extends 'base.html.twig' %}
  165. {% block title %}Log in!{% endblock %}
  166. {% block body %}
  167.     <div class=\"login\">
  168.         <form method=\"post\">
  169.             {% if error %}
  170.                 <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  171.             {% endif %}
  172.             {% if app.user %}
  173.                 <div class=\"mb-3\">
  174.                     You are logged in as {{ app.user.userIdentifier }}, <a href=\"{{ path('app_logout') }}\">Logout</a> or go to the <a href=\"{{ path('app_homepage') }}\">Homepage</a>
  175.                 </div>
  176.             {% endif %}
  177.             <h1 class=\"h3 mb-3 font-weight-normal\">Please sign in</h1>
  178.             <label for=\"inputUsername\">Username</label>
  179.             <input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" autocomplete=\"username\" required autofocus>
  180.             <label for=\"inputPassword\">Password</label>
  181.             <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  182.             <input type=\"hidden\" name=\"_csrf_token\"
  183.                    value=\"{{ csrf_token('authenticate') }}\"
  184.             >
  185.             {#
  186.                 Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  187.                 See https://symfony.com/doc/current/security/remember_me.html
  188.                 <div class=\"checkbox mb-3\">
  189.                     <label>
  190.                         <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  191.                     </label>
  192.                 </div>
  193.             #}
  194.             <button class=\"btn btn-primary\" type=\"submit\">
  195.                 Sign in
  196.             </button>
  197.         </form>
  198.     </div>
  199. {% endblock %}
  200. ""security/login.html.twig""/var/www/vhosts/ad-libitum.info/api2csv.ad-libitum.info/templates/security/login.html.twig");
  201.     }
  202. }