var/cache/dev/twig/53/53190eb2a0637a5803ce18f3879cf95f502bdaa5487ce2565d5e7b1358061788.php line 48

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. /* security/login.html.twig */
  14. class __TwigTemplate_c3f54ea53c139b8437cd0fad870b254f3e3883421050d9623a5f874088942892 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.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""security/login.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "    <h1 class=\"h3 mb-3 font-weight-normal\">Se connecter</h1>
  55. <form method=\"post\">
  56.     ";
  57.         // line 7
  58.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'7$this->source); })())) {
  59.             // line 8
  60.             echo "        <div class=\"error alert-danger\">";
  61.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($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), twig_get_attribute($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);
  62.             echo "</div>
  63.     ";
  64.         }
  65.         // line 10
  66.         echo "
  67.     ";
  68.         // line 11
  69.         if (twig_get_attribute($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)) {
  70.             // line 12
  71.             echo "        <div class=\"mb-3\">
  72.             Vous êtes connecté en tant que ";
  73.             // line 13
  74.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($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);
  75.             echo ", <a href=\"";
  76.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  77.             echo "\">Se déconnecter</a>
  78.         </div>
  79.     ";
  80.         }
  81.         // line 16
  82.         echo "
  83.     <div>
  84.         <label for=\"inputUsername\">Identifiant</label>
  85.         <input type=\"text\" value=\"";
  86.         // line 19
  87.         echo twig_escape_filter($this->env, (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);
  88.         echo "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" autocomplete=\"username\" required autofocus>
  89.         <label for=\"inputPassword\">Mot de passe</label>
  90.         <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  91.         <input type=\"hidden\" name=\"_csrf_token\"
  92.            value=\"";
  93.         // line 24
  94.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  95.         echo "\"
  96.         >
  97.         <button class=\"btn btn-lg btn-primary\" type=\"submit\">
  98.             Se connecter
  99.         </button>
  100.     </div>
  101.     <div>
  102.         <a href=\"";
  103.         // line 33
  104.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
  105.         echo "\">Mot de passe oublié ?</a><br/>
  106.         <a href=\"";
  107.         // line 34
  108.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  109.         echo "\">Créer un compte</a>
  110.     </div>
  111. </form>
  112. ";
  113.         
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  115.         
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  117.     }
  118.     public function getTemplateName()
  119.     {
  120.         return "security/login.html.twig";
  121.     }
  122.     public function isTraitable()
  123.     {
  124.         return false;
  125.     }
  126.     public function getDebugInfo()
  127.     {
  128.         return array (  126 => 34,  122 => 33,  110 => 24,  102 => 19,  97 => 16,  89 => 13,  86 => 12,  84 => 11,  81 => 10,  75 => 8,  73 => 7,  68 => 4,  58 => 3,  35 => 1,);
  129.     }
  130.     public function getSourceContext()
  131.     {
  132.         return new Source("{% extends 'base.html.twig' %}
  133. {% block body %}
  134.     <h1 class=\"h3 mb-3 font-weight-normal\">Se connecter</h1>
  135. <form method=\"post\">
  136.     {% if error %}
  137.         <div class=\"error alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  138.     {% endif %}
  139.     {% if app.user %}
  140.         <div class=\"mb-3\">
  141.             Vous êtes connecté en tant que {{ app.user.userIdentifier }}, <a href=\"{{ path('app_logout') }}\">Se déconnecter</a>
  142.         </div>
  143.     {% endif %}
  144.     <div>
  145.         <label for=\"inputUsername\">Identifiant</label>
  146.         <input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" autocomplete=\"username\" required autofocus>
  147.         <label for=\"inputPassword\">Mot de passe</label>
  148.         <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  149.         <input type=\"hidden\" name=\"_csrf_token\"
  150.            value=\"{{ csrf_token('authenticate') }}\"
  151.         >
  152.         <button class=\"btn btn-lg btn-primary\" type=\"submit\">
  153.             Se connecter
  154.         </button>
  155.     </div>
  156.     <div>
  157.         <a href=\"{{ path('app_forgot_password_request') }}\">Mot de passe oublié ?</a><br/>
  158.         <a href=\"{{ path('app_register') }}\">Créer un compte</a>
  159.     </div>
  160. </form>
  161. {% endblock %}
  162. ""security/login.html.twig""/home/clients/acb4fc297720bccaee1604666d4dcedb/girci_go_demo/templates/security/login.html.twig");
  163.     }
  164. }