var/cache/website/dev/twig/04/04150eb3079033623decd9e0e560b58e.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. /* acoa/security/login.html.twig */
  14. class __TwigTemplate_e2c976afab2411b9ef683c733f13072c 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.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.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""acoa/security/login.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""acoa/security/login.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""acoa/security/login.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 2
  48.     public function block_title($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""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo "Inscription";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 3
  62.     public function block_content($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         // line 4
  70.         echo "<div id=\"maininscription\">
  71.    <!-- CONTAINER -->
  72.    <div class=\"w-full pt-16 pb-6\">
  73.       <div id=\"boxincription\" class=\"bg-white maxWidthM w-11/12 mt-10 mb-16 ml-auto mr-auto text-white\">
  74.          <!-- box left -->
  75.          <div id=\"boxleft\" class=\"h-fit float-left pt-16 pl-4 pr-4 lg:pl-10 lg:pr-10 bg-header-lgblue Poppins\">
  76.             <!--<div id=\"toptitle\" class=\"text-xl font-bold\">ACOA</div>-->
  77.             <!--<div class=\"mb-12 text-xs\">Votre partenaire Conseil et Formation en Guadeloupe, Martinique et Guyane</div>-->
  78.             <div class=\"text-xl font-bold\">Authentification</div>
  79.             <div class=\"text-xs mb-12\">Vous avez déjà un compte, authentifiez vous</div>
  80.             <div id=\"loginForm\" class=\"boxLogin boxIpuntM mb-10\">
  81.                <form method=\"post\">
  82.                   <div class=\"heightForm\">
  83.                      ";
  84.         // line 17
  85.         $context['_parent'] = $context;
  86.         $context['_seq'] = twig_ensure_traversable(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.'17$this->source); })()), "flashes", [=> "success"], "method"falsefalsefalse17));
  87.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  88.             // line 18
  89.             echo "                     <div class=\"bg-green-100 border border-green-400 text-green-700 text-sm px-4 py-3 rounded relative\" role=\"alert\">
  90.                         <span class=\"block sm:inline\">";
  91.             // line 19
  92.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  93.             echo "</span>
  94.                      </div>
  95.                      ";
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 22
  101.         echo "                     <div class=\"blockHeight\">
  102.                         <label for=\"inputEmail\">Email utilisateur*</label> <br />
  103.                         ";
  104.         // line 24
  105.         if (( !(null === (isset($context["_email"]) || array_key_exists("_email"$context) ? $context["_email"] : (function () { throw new RuntimeError('Variable "_email" does not exist.'24$this->source); })())) && ((isset($context["exist"]) || array_key_exists("exist"$context) ? $context["exist"] : (function () { throw new RuntimeError('Variable "exist" does not exist.'24$this->source); })()) == 1))) {
  106.             // line 25
  107.             echo "                        <input class=\"border pl-2 rounded-lg w-full h-6\" placeholder=\"Email utilisateur\"
  108.                            type=\"email\" value=\"";
  109.             // line 26
  110.             echo twig_escape_filter($this->env, (isset($context["_email"]) || array_key_exists("_email"$context) ? $context["_email"] : (function () { throw new RuntimeError('Variable "_email" does not exist.'26$this->source); })()), "html"nulltrue);
  111.             echo "\" name=\"email\" id=\"inputEmail\"
  112.                            class=\"form-control\" autocomplete=\"email\" required autofocus readonly>
  113.                         ";
  114.         } else {
  115.             // line 29
  116.             echo "                        <input class=\"border pl-2 rounded-lg w-full h-6\" placeholder=\"Email utilisateur\"
  117.                            type=\"email\" value=\"";
  118.             // line 30
  119.             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.'30$this->source); })()), "html"nulltrue);
  120.             echo "\" name=\"email\" id=\"inputEmail\"
  121.                            class=\"form-control\" autocomplete=\"email\" required autofocus>
  122.                         ";
  123.         }
  124.         // line 33
  125.         echo "                     </div>
  126.                      <div class=\"mt-4 text-xs\">
  127.                         <label for=\"inputPassword\">Mot de passe*</label>
  128.                         <div class=\"input-eye relative\">
  129.                            <input class=\"border pl-2 rounded-lg w-full h-6\" placeholder=\"Mot de passe\"
  130.                               type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\"
  131.                               autocomplete=\"current-password\" required>
  132.                            <i class=\"fa-solid fa-eye\"></i>
  133.                         </div>
  134.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  135.         // line 42
  136.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  137.         echo "\">
  138.                      </div>
  139.                      ";
  140.         // line 44
  141.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'44$this->source); })())) {
  142.             // line 45
  143.             echo "                     <div class=\"bg-red-100 border border-red-400 text-red-700 text-sm px-4 py-3 rounded relative\" role=\"alert\">
  144.                         <span class=\"block sm:inline\">";
  145.             // line 46
  146.             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.'46$this->source); })()), "messageKey", [], "any"falsefalsefalse46), 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.'46$this->source); })()), "messageData", [], "any"falsefalsefalse46), "security"), "html"nulltrue);
  147.             echo "</span>
  148.                      </div>
  149.                      ";
  150.         }
  151.         // line 49
  152.         echo "                     ";
  153.         $context['_parent'] = $context;
  154.         $context['_seq'] = twig_ensure_traversable(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.'49$this->source); })()), "flashes", [=> "alert"], "method"falsefalsefalse49));
  155.         foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  156.             // line 50
  157.             echo "                     <div class=\"bg-red-100 border border-red-400 text-red-700 text-sm px-4 py-3 rounded relative\" role=\"alert\">
  158.                         <span class=\"block sm:inline\">";
  159.             // line 51
  160.             echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  161.             echo "</span>
  162.                      </div>
  163.                      ";
  164.         }
  165.         $_parent $context['_parent'];
  166.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  167.         $context array_intersect_key($context$_parent) + $_parent;
  168.         // line 54
  169.         echo "                  </div>
  170.                   <div class=\"button mt-16\">
  171.                      <button class=\"buttonM rounded-full text-center font-bold text-white pt-2 pb-2 w-full text-sm\"
  172.                         type=\"submit\">Authentifier</button>
  173.                   </div>
  174.                   <div class=\"mt-4\">
  175.                      <a class=\"text-xs aHover\" href=\"";
  176.         // line 60
  177.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("forgot_password");
  178.         echo "\"><span>Mot de passe oublié ?</span></a>
  179.                   </div>
  180.                   <label>
  181.                   <input type=\"checkbox\" class=\"mt-4 checkboxM\" name=\"_remember_me\"/>
  182.                   Se souvenir de moi
  183.                   </label>
  184.                </form>
  185.             </div>
  186.          </div>
  187.          <!-- box Right -->
  188.          <div id=\"boxright\" class=\"h-full float-right pt-16 pl-4 pr-4 lg:pl-10 lg:pr-10 relative text-black text-sm Poppins\">
  189.             <div id=\"toptitle\" class=\"text-xl font-bold\">Inscription</div>
  190.             <div class=\"text-xs mb-12\">Inscrivez-vous pour commencer</div>
  191.             <div class=\"w-full boxIpuntM\">
  192.                ";
  193.         // line 74
  194.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\RegistrationController::register"));
  195.         // line 76
  196.         echo "
  197.             </div>
  198.          </div>
  199.          <div class=\"clear-both\"></div>
  200.       </div>
  201.    </div>
  202. </div>
  203. ";
  204.         
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206.         
  207.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208.     }
  209.     // line 84
  210.     public function block_javascripts($context, array $blocks = [])
  211.     {
  212.         $macros $this->macros;
  213.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  214.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  215.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  217.         // line 85
  218.         $this->displayParentBlock("javascripts"$context$blocks);
  219.         echo "
  220. <script type=\"application/javascript\">
  221.    document.querySelector(\"#alert-pwd-length\").hidden = true;
  222.    document.querySelector(\"#alert-pwd-not-same\").hidden = true;
  223.    
  224.    var isSubmitable = true;
  225.    
  226.    /**
  227.     * Vérifie la longueur du 1er mot de passe et affiche un message d'erreur si < 6 caractères.
  228.     */
  229.    const checkLength = (e) => {
  230.        
  231.        if(e.currentTarget.value.length < 6) {
  232.            document.querySelector(\"#alert-pwd-length\").hidden = false;
  233.            isSubmitable = false;
  234.        }
  235.        else {
  236.            document.querySelector(\"#alert-pwd-length\").hidden = true;
  237.            isSubmitable = true;
  238.        }
  239.    };
  240.    
  241.    /**
  242.     * Vérifie si le formulaire est correct :
  243.     * Compare les 2 mots de passe et bloque le submit si différent.
  244.     * Bloque la validation si erreur.
  245.     */
  246.    const checkFormRegister = (e) => {
  247.        
  248.        document.querySelector(\"#alert-pwd-not-same\").hidden = true;
  249.    
  250.        let pass1 = document.querySelector(\"#registration_form_plainPassword\").value;
  251.        let pass2 = document.querySelector(\"#registration_form_plainPasswordConfirm\").value;
  252.    
  253.        if(pass1 != pass2 ) {
  254.            e.preventDefault();
  255.            document.querySelector(\"#alert-pwd-not-same\").hidden = false;
  256.        }
  257.    
  258.        if(!isSubmitable) {
  259.            e.preventDefault();
  260.        }
  261.    };
  262.    
  263.    document
  264.        .querySelector(\"#registration_form_plainPassword\")
  265.        .addEventListener(\"keyup\", checkLength);
  266.    
  267.    document
  268.        .querySelector(\"#form-register\")
  269.        .addEventListener(\"submit\", checkFormRegister);
  270.    
  271. </script>
  272. ";
  273.         
  274.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  275.         
  276.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  277.     }
  278.     public function getTemplateName()
  279.     {
  280.         return "acoa/security/login.html.twig";
  281.     }
  282.     public function isTraitable()
  283.     {
  284.         return false;
  285.     }
  286.     public function getDebugInfo()
  287.     {
  288.         return array (  242 => 85,  232 => 84,  215 => 76,  213 => 74,  196 => 60,  188 => 54,  179 => 51,  176 => 50,  171 => 49,  165 => 46,  162 => 45,  160 => 44,  155 => 42,  144 => 33,  138 => 30,  135 => 29,  129 => 26,  126 => 25,  124 => 24,  120 => 22,  111 => 19,  108 => 18,  104 => 17,  89 => 4,  79 => 3,  60 => 2,  37 => 1,);
  289.     }
  290.     public function getSourceContext()
  291.     {
  292.         return new Source("{% extends 'base.html.twig' %}
  293. {% block title %}Inscription{% endblock %}
  294. {% block content %}
  295. <div id=\"maininscription\">
  296.    <!-- CONTAINER -->
  297.    <div class=\"w-full pt-16 pb-6\">
  298.       <div id=\"boxincription\" class=\"bg-white maxWidthM w-11/12 mt-10 mb-16 ml-auto mr-auto text-white\">
  299.          <!-- box left -->
  300.          <div id=\"boxleft\" class=\"h-fit float-left pt-16 pl-4 pr-4 lg:pl-10 lg:pr-10 bg-header-lgblue Poppins\">
  301.             <!--<div id=\"toptitle\" class=\"text-xl font-bold\">ACOA</div>-->
  302.             <!--<div class=\"mb-12 text-xs\">Votre partenaire Conseil et Formation en Guadeloupe, Martinique et Guyane</div>-->
  303.             <div class=\"text-xl font-bold\">Authentification</div>
  304.             <div class=\"text-xs mb-12\">Vous avez déjà un compte, authentifiez vous</div>
  305.             <div id=\"loginForm\" class=\"boxLogin boxIpuntM mb-10\">
  306.                <form method=\"post\">
  307.                   <div class=\"heightForm\">
  308.                      {% for message in app.flashes('success') %}
  309.                      <div class=\"bg-green-100 border border-green-400 text-green-700 text-sm px-4 py-3 rounded relative\" role=\"alert\">
  310.                         <span class=\"block sm:inline\">{{ message }}</span>
  311.                      </div>
  312.                      {% endfor %}
  313.                      <div class=\"blockHeight\">
  314.                         <label for=\"inputEmail\">Email utilisateur*</label> <br />
  315.                         {% if _email is not null  and exist==1 %}
  316.                         <input class=\"border pl-2 rounded-lg w-full h-6\" placeholder=\"Email utilisateur\"
  317.                            type=\"email\" value=\"{{ _email }}\" name=\"email\" id=\"inputEmail\"
  318.                            class=\"form-control\" autocomplete=\"email\" required autofocus readonly>
  319.                         {% else %}
  320.                         <input class=\"border pl-2 rounded-lg w-full h-6\" placeholder=\"Email utilisateur\"
  321.                            type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\"
  322.                            class=\"form-control\" autocomplete=\"email\" required autofocus>
  323.                         {% endif %}
  324.                      </div>
  325.                      <div class=\"mt-4 text-xs\">
  326.                         <label for=\"inputPassword\">Mot de passe*</label>
  327.                         <div class=\"input-eye relative\">
  328.                            <input class=\"border pl-2 rounded-lg w-full h-6\" placeholder=\"Mot de passe\"
  329.                               type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\"
  330.                               autocomplete=\"current-password\" required>
  331.                            <i class=\"fa-solid fa-eye\"></i>
  332.                         </div>
  333.                         <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  334.                      </div>
  335.                      {% if error %}
  336.                      <div class=\"bg-red-100 border border-red-400 text-red-700 text-sm px-4 py-3 rounded relative\" role=\"alert\">
  337.                         <span class=\"block sm:inline\">{{ error.messageKey|trans(error.messageData, 'security') }}</span>
  338.                      </div>
  339.                      {% endif %}
  340.                      {% for message in app.flashes('alert') %}
  341.                      <div class=\"bg-red-100 border border-red-400 text-red-700 text-sm px-4 py-3 rounded relative\" role=\"alert\">
  342.                         <span class=\"block sm:inline\">{{ message }}</span>
  343.                      </div>
  344.                      {% endfor %}
  345.                   </div>
  346.                   <div class=\"button mt-16\">
  347.                      <button class=\"buttonM rounded-full text-center font-bold text-white pt-2 pb-2 w-full text-sm\"
  348.                         type=\"submit\">Authentifier</button>
  349.                   </div>
  350.                   <div class=\"mt-4\">
  351.                      <a class=\"text-xs aHover\" href=\"{{ path('forgot_password') }}\"><span>Mot de passe oublié ?</span></a>
  352.                   </div>
  353.                   <label>
  354.                   <input type=\"checkbox\" class=\"mt-4 checkboxM\" name=\"_remember_me\"/>
  355.                   Se souvenir de moi
  356.                   </label>
  357.                </form>
  358.             </div>
  359.          </div>
  360.          <!-- box Right -->
  361.          <div id=\"boxright\" class=\"h-full float-right pt-16 pl-4 pr-4 lg:pl-10 lg:pr-10 relative text-black text-sm Poppins\">
  362.             <div id=\"toptitle\" class=\"text-xl font-bold\">Inscription</div>
  363.             <div class=\"text-xs mb-12\">Inscrivez-vous pour commencer</div>
  364.             <div class=\"w-full boxIpuntM\">
  365.                {{ render(controller(
  366.                'App\\\\Controller\\\\RegistrationController::register'
  367.                )) }}
  368.             </div>
  369.          </div>
  370.          <div class=\"clear-both\"></div>
  371.       </div>
  372.    </div>
  373. </div>
  374. {% endblock %}
  375. {% block javascripts %}
  376. {{ parent()}}
  377. <script type=\"application/javascript\">
  378.    document.querySelector(\"#alert-pwd-length\").hidden = true;
  379.    document.querySelector(\"#alert-pwd-not-same\").hidden = true;
  380.    
  381.    var isSubmitable = true;
  382.    
  383.    /**
  384.     * Vérifie la longueur du 1er mot de passe et affiche un message d'erreur si < 6 caractères.
  385.     */
  386.    const checkLength = (e) => {
  387.        
  388.        if(e.currentTarget.value.length < 6) {
  389.            document.querySelector(\"#alert-pwd-length\").hidden = false;
  390.            isSubmitable = false;
  391.        }
  392.        else {
  393.            document.querySelector(\"#alert-pwd-length\").hidden = true;
  394.            isSubmitable = true;
  395.        }
  396.    };
  397.    
  398.    /**
  399.     * Vérifie si le formulaire est correct :
  400.     * Compare les 2 mots de passe et bloque le submit si différent.
  401.     * Bloque la validation si erreur.
  402.     */
  403.    const checkFormRegister = (e) => {
  404.        
  405.        document.querySelector(\"#alert-pwd-not-same\").hidden = true;
  406.    
  407.        let pass1 = document.querySelector(\"#registration_form_plainPassword\").value;
  408.        let pass2 = document.querySelector(\"#registration_form_plainPasswordConfirm\").value;
  409.    
  410.        if(pass1 != pass2 ) {
  411.            e.preventDefault();
  412.            document.querySelector(\"#alert-pwd-not-same\").hidden = false;
  413.        }
  414.    
  415.        if(!isSubmitable) {
  416.            e.preventDefault();
  417.        }
  418.    };
  419.    
  420.    document
  421.        .querySelector(\"#registration_form_plainPassword\")
  422.        .addEventListener(\"keyup\", checkLength);
  423.    
  424.    document
  425.        .querySelector(\"#form-register\")
  426.        .addEventListener(\"submit\", checkFormRegister);
  427.    
  428. </script>
  429. {% endblock %}""acoa/security/login.html.twig""/var/www/html/acoa/templates/acoa/security/login.html.twig");
  430.     }
  431. }