var/cache/dev/twig/f5/f5e76d1f55f87122800c4e24f89f9379.php line 39

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