var/cache/dev/twig/82/82ce2cbb7e0f484663d498d552380630.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. /* security/login.html.twig */
  16. class __TwigTemplate_1b2307aca1c558726f9a295f8744011e 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.             'body' => [$this'block_body'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32.     {
  33.         // line 1
  34.         return "base.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""security/login.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""security/login.html.twig"));
  43.         $this->parent $this->load("base.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 3
  51.     /**
  52.      * @return iterable<null|scalar|\Stringable>
  53.      */
  54.     public function block_body(array $context, array $blocks = []): iterable
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  61.         // line 4
  62.         yield "    <h1 class=\"h3 mb-3 font-weight-normal\">Se connecter</h1>
  63. <form method=\"post\">
  64.     ";
  65.         // line 7
  66.         if ((($tmp = (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'7$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  67.             // line 8
  68.             yield "        <div class=\"error alert-danger\">";
  69.             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.'8$this->source); })()), "messageKey", [], "any"falsefalsefalse8), 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.'8$this->source); })()), "messageData", [], "any"falsefalsefalse8), "security"), "html"nulltrue);
  70.             yield "</div>
  71.     ";
  72.         }
  73.         // line 10
  74.         yield "
  75.     ";
  76.         // line 11
  77.         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.'11$this->source); })()), "user", [], "any"falsefalsefalse11)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  78.             // line 12
  79.             yield "        <div class=\"mb-3\">
  80.             Vous êtes connecté en tant que ";
  81.             // line 13
  82.             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.'13$this->source); })()), "user", [], "any"falsefalsefalse13), "userIdentifier", [], "any"falsefalsefalse13), "html"nulltrue);
  83.             yield ", <a href=\"";
  84.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  85.             yield "\">Se déconnecter</a>
  86.         </div>
  87.     ";
  88.         }
  89.         // line 16
  90.         yield "
  91.     <div>
  92.         <label for=\"inputUsername\">Identifiant</label>
  93.         <input type=\"text\" value=\"";
  94.         // line 19
  95.         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.'19$this->source); })()), "html"nulltrue);
  96.         yield "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" autocomplete=\"username\" required autofocus>
  97.         <label for=\"inputPassword\">Mot de passe</label>
  98.         <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  99.         <input type=\"hidden\" name=\"_csrf_token\"
  100.            value=\"";
  101.         // line 24
  102.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  103.         yield "\"
  104.         >
  105.         <button class=\"btn btn-lg btn-primary\" type=\"submit\">
  106.             Se connecter
  107.         </button>
  108.     </div>
  109.     <div>
  110.         <a href=\"";
  111.         // line 33
  112.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
  113.         yield "\">Mot de passe oublié ?</a><br/>
  114.         <a href=\"";
  115.         // line 34
  116.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  117.         yield "\">Créer un compte</a>
  118.     </div>
  119. </form>
  120. ";
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.         
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  125.         yield from [];
  126.     }
  127.     /**
  128.      * @codeCoverageIgnore
  129.      */
  130.     public function getTemplateName(): string
  131.     {
  132.         return "security/login.html.twig";
  133.     }
  134.     /**
  135.      * @codeCoverageIgnore
  136.      */
  137.     public function isTraitable(): bool
  138.     {
  139.         return false;
  140.     }
  141.     /**
  142.      * @codeCoverageIgnore
  143.      */
  144.     public function getDebugInfo(): array
  145.     {
  146.         return array (  134 => 34,  130 => 33,  118 => 24,  110 => 19,  105 => 16,  97 => 13,  94 => 12,  92 => 11,  89 => 10,  83 => 8,  81 => 7,  76 => 4,  63 => 3,  40 => 1,);
  147.     }
  148.     public function getSourceContext(): Source
  149.     {
  150.         return new Source("{% extends 'base.html.twig' %}
  151. {% block body %}
  152.     <h1 class=\"h3 mb-3 font-weight-normal\">Se connecter</h1>
  153. <form method=\"post\">
  154.     {% if error %}
  155.         <div class=\"error alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  156.     {% endif %}
  157.     {% if app.user %}
  158.         <div class=\"mb-3\">
  159.             Vous êtes connecté en tant que {{ app.user.userIdentifier }}, <a href=\"{{ path('app_logout') }}\">Se déconnecter</a>
  160.         </div>
  161.     {% endif %}
  162.     <div>
  163.         <label for=\"inputUsername\">Identifiant</label>
  164.         <input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" autocomplete=\"username\" required autofocus>
  165.         <label for=\"inputPassword\">Mot de passe</label>
  166.         <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  167.         <input type=\"hidden\" name=\"_csrf_token\"
  168.            value=\"{{ csrf_token('authenticate') }}\"
  169.         >
  170.         <button class=\"btn btn-lg btn-primary\" type=\"submit\">
  171.             Se connecter
  172.         </button>
  173.     </div>
  174.     <div>
  175.         <a href=\"{{ path('app_forgot_password_request') }}\">Mot de passe oublié ?</a><br/>
  176.         <a href=\"{{ path('app_register') }}\">Créer un compte</a>
  177.     </div>
  178. </form>
  179. {% endblock %}
  180. ""security/login.html.twig""/home/clients/acb4fc297720bccaee1604666d4dcedb/girci_go_demo/templates/security/login.html.twig");
  181.     }
  182. }