<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @Account/account/login.html.twig */
class __TwigTemplate_b39110c29e07e3f479923668c02723de extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "@Account/account/login.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Account/account/login.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Account/account/login.html.twig"));
// line 3
if (( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 3, $this->source); })()) && array_key_exists("recaptcha", $context))) {
// line 4
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 4, $this->source); })()) == 2)) {
// line 5
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://www.google.com/recaptcha/api.js"], "method", false, false, true, 5);
} elseif (( // line 6
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 6, $this->source); })()) == 3)) {
// line 7
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => ("https://www.google.com/recaptcha/api.js?render=" . (isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic", $context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.', 7, $this->source); })()))], "method", false, false, true, 7);
}
}
// line 11
$context["head_title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Login Page");
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 13
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 14
echo " <div class=\"container mb-5 pb-5\">
<div class=\"row justify-content-center\">
";
// line 17
if ((isset($context["signupsuccess"]) || array_key_exists("signupsuccess", $context) ? $context["signupsuccess"] : (function () { throw new RuntimeError('Variable "signupsuccess" does not exist.', 17, $this->source); })())) {
// line 18
echo " <div class=\"col-lg-6\">
<div class=\"alert alert-info\">
<h3>";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your registration was successful"), "html", null, true);
echo "</h3><br>
<p>";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your request has been send for approval."), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 25
echo "
<div class=\"col-lg-6\">
<div class=\"login-panel panel panel-default\">
<div class=\"panel-body area-col\">
<div class=\"area-col-inner position-relative area-shape area-shape-default bg-secondary p-5\">
<div class=\"panel-heading\">
<h1 class=\"text-center text-white mb-5\"><span class=\"heading-line white\">";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("LoginPortal - Login"), "html", null, true);
echo "</span></h1>
</div>
";
// line 40
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("LoginPortal - Introtext");
echo "
";
// line 43
echo "
";
// line 46
echo " ";
$context['_parent'] = $context;
$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.', 46, $this->source); })()), "flashes", [0 => [0 => "success", 1 => "warning"]], "method", false, false, true, 46));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 47
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 48
echo " <div id=\"messages\" class=\"flash-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 48, $this->source), "html", null, true);
echo "\">
";
// line 49
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 49, $this->source), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo "
<br>
<div class=\"mt-3\">
";
// line 58
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 58, $this->source); })()), 58, $this->source), 'form_start');
echo "
<div class=\"row\">
<div class=\"col-12 mb-3\">
";
// line 62
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 62, $this->source); })()), "email", [], "any", false, false, true, 62), 62, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "
";
// line 63
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 63, $this->source); })()), "email", [], "any", false, false, true, 63), 63, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 63, $this->source); })()), "email", [], "any", false, false, true, 63), "vars", [], "any", false, false, true, 63), "label", [], "any", false, false, true, 63)]]);
echo "
<div id=\"emailHelp\" class=\"form-text\">";
// line 65
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 65, $this->source); })()), "email", [], "any", false, false, true, 65), 65, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 68
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 68, $this->source); })()), "email", [], "any", false, false, true, 68), 68, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-12 mb-3\">
";
// line 73
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 73, $this->source); })()), "password", [], "any", false, false, true, 73), 73, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "
";
// line 74
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 74, $this->source); })()), "password", [], "any", false, false, true, 74), 74, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 74, $this->source); })()), "password", [], "any", false, false, true, 74), "vars", [], "any", false, false, true, 74), "label", [], "any", false, false, true, 74)]]);
echo "
<div id=\"lastnameHelp\" class=\"form-text\">";
// line 76
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 76, $this->source); })()), "password", [], "any", false, false, true, 76), 76, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 79
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 79, $this->source); })()), "password", [], "any", false, false, true, 79), 79, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
// line 103
echo "
";
// line 104
if (( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 104, $this->source); })()) && array_key_exists("recaptcha", $context))) {
// line 105
echo " ";
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 105, $this->source); })()) == 2)) {
// line 106
echo " <div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"";
// line 107
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic", $context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.', 107, $this->source); })()), 107, $this->source), "html", null, true);
echo "\"></div>
</div>
";
} elseif (( // line 109
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 109, $this->source); })()) == 3)) {
// line 110
echo " <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
";
}
// line 112
echo " ";
}
// line 113
echo "
<div class=\"text-center mb-3\">
";
// line 115
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 115, $this->source); })()), "submit", [], "any", false, false, true, 115), 115, $this->source), 'row', ["attr" => ["class" => "btn btn-black w-100", "value" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 115, $this->source); })()), "submit", [], "any", false, false, true, 115), "vars", [], "any", false, false, true, 115), "label", [], "any", false, false, true, 115)]]);
echo "
</div>
<div class=\"text-center mb-3\">
<a href=\"";
// line 119
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("signup-page");
echo "\" class=\"btn btn-outline-white signup me-3\">
<i class=\"far fa-user-circle fa-1x\"></i> ";
// line 120
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Create account?"), "html", null, true);
echo "
</a>
<a href=\"";
// line 123
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("lostpassword-page");
echo "\"
class=\"text-white\">";
// line 124
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot password?"), "html", null, true);
echo "</a>
</div>
";
// line 127
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 127, $this->source); })()), 127, $this->source), 'form_end');
echo "
</div>
<svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
<path d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
</clipPath>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
";
// line 145
if ((( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 145, $this->source); })()) && ((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 145, $this->source); })()) == 3)) && (twig_test_empty(twig_get_attribute($this->env, $this->source, 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.', 145, $this->source); })()), "flashes", [0 => [0 => "success"]], "method", false, false, true, 145), "success", [], "any", false, false, true, 145)) || twig_test_empty(twig_get_attribute($this->env, $this->source, 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.', 145, $this->source); })()), "flashes", [0 => [0 => "warning"]], "method", false, false, true, 145), "warning", [], "any", false, false, true, 145))))) {
// line 146
echo " <script>
function getReCaptcha() {
grecaptcha.ready(function () {
grecaptcha.execute('";
// line 149
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic", $context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.', 149, $this->source); })()), 149, $this->source), "html", null, true);
echo "', {action: 'account_login'}).then(function (token) {
var recaptchaResponse = document.getElementById('gtoken');
recaptchaResponse.value = token;
});
});
}
getReCaptcha(); // This is the initial call
setInterval(function () {
getReCaptcha();
}, 60000);
</script>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@Account/account/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 309 => 149, 304 => 146, 302 => 145, 281 => 127, 275 => 124, 271 => 123, 265 => 120, 261 => 119, 254 => 115, 250 => 113, 247 => 112, 243 => 110, 241 => 109, 236 => 107, 233 => 106, 230 => 105, 228 => 104, 225 => 103, 217 => 79, 211 => 76, 206 => 74, 201 => 73, 194 => 68, 188 => 65, 183 => 63, 178 => 62, 172 => 58, 165 => 53, 159 => 52, 150 => 49, 145 => 48, 140 => 47, 135 => 46, 131 => 43, 126 => 40, 120 => 37, 106 => 25, 99 => 21, 95 => 20, 91 => 18, 89 => 17, 84 => 14, 74 => 13, 64 => 1, 62 => 11, 58 => 7, 56 => 6, 54 => 5, 52 => 4, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% if not editmode and recaptcha is defined %}
{% if recaptcha == 2 %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js') %}
{% elseif recaptcha == 3 %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=' ~ recaptchaPublic) %}
{% endif %}
{% endif %}
{% set head_title = \"Login Page\"|trans %}
{% block content %}
<div class=\"container mb-5 pb-5\">
<div class=\"row justify-content-center\">
{% if signupsuccess %}
<div class=\"col-lg-6\">
<div class=\"alert alert-info\">
<h3>{{ 'Your registration was successful'|trans }}</h3><br>
<p>{{ 'Your request has been send for approval.'|trans }}</p>
</div>
</div>
{% endif %}
<div class=\"col-lg-6\">
<div class=\"login-panel panel panel-default\">
<div class=\"panel-body area-col\">
<div class=\"area-col-inner position-relative area-shape area-shape-default bg-secondary p-5\">
<div class=\"panel-heading\">
<h1 class=\"text-center text-white mb-5\"><span class=\"heading-line white\">{{ 'LoginPortal - Login'|trans }}</span></h1>
</div>
{{ 'LoginPortal - Introtext'|trans|raw }}
{# <span id=\"password-success\" style=\"color: #000\">{{ 'You can access now with your email and new password'|trans }}</span>#}
{# read and display several types of flash messages #}
{% for label, messages in app.flashes(['success', 'warning']) %}
{% for message in messages %}
<div id=\"messages\" class=\"flash-{{ label }}\">
{{ message }}
</div>
{% endfor %}
{% endfor %}
<br>
<div class=\"mt-3\">
{{ form_start(form) }}
<div class=\"row\">
<div class=\"col-12 mb-3\">
{# {{ form_row(form.firstname) }}#}
{{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': form.email.vars.label}}) }}
<div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.email) }}</div>
<div class=\"form-error\">
{{ form_errors(form.email) }}
</div>
</div>
<div class=\"col-12 mb-3\">
{# {{ form_row(form.lastname) }}#}
{{ form_label(form.password, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.password, {'attr': {'class': 'form-control', 'placeholder': form.password.vars.label }}) }}
<div id=\"lastnameHelp\" class=\"form-text\">{{ form_help(form.password) }}</div>
<div class=\"form-error\">
{{ form_errors(form.password) }}
</div>
</div>
</div>
{# {{ form_row(form.conditions) }}
<div class=\"col-12 form-check text-start mb-3\">
{{ form_widget(form.conditions, {'attr': {'class': 'form-check-input'}}) }}
#}{#{{ form_label(form.conditions, null, {'label_attr': {'class': 'form-check-label'}}) }}#}{#
<label class=\"form-check-label required\" for=\"login_form_conditions\">{{ 'Ik ga akkoord met'|trans }}</label>
<a href=\"{% if check_websitesetting('privacy_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('privacy_document')) }}{% endif %}\"
target=\"_blank\" class=\"fw-bold text-black\">
{{ 'privacy'|trans }}
</a>
<div id=\"conditionsHelp\" class=\"form-text\">{{ form_help(form.conditions) }}</div>
<div class=\"form-error\">
{{ form_errors(form.conditions) }}
</div>
</div>#}
{% if not editmode and recaptcha is defined %}
{% if recaptcha == 2 %}
<div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublic }}\"></div>
</div>
{% elseif recaptcha == 3 %}
<input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
{% endif %}
{% endif %}
<div class=\"text-center mb-3\">
{{ form_row(form.submit, {'attr': {'class': 'btn btn-black w-100','value': form.submit.vars.label}}) }}
</div>
<div class=\"text-center mb-3\">
<a href=\"{{ path(\"signup-page\") }}\" class=\"btn btn-outline-white signup me-3\">
<i class=\"far fa-user-circle fa-1x\"></i> {{ 'Create account?'|trans }}
</a>
<a href=\"{{ path(\"lostpassword-page\") }}\"
class=\"text-white\">{{ 'Forgot password?'|trans }}</a>
</div>
{{ form_end(form) }}
</div>
<svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
<path d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
</clipPath>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
{% if not editmode and recaptcha == 3 and (app.flashes(['success']).success is empty or app.flashes(['warning']).warning is empty) %}
<script>
function getReCaptcha() {
grecaptcha.ready(function () {
grecaptcha.execute('{{ recaptchaPublic }}', {action: 'account_login'}).then(function (token) {
var recaptchaResponse = document.getElementById('gtoken');
recaptchaResponse.value = token;
});
});
}
getReCaptcha(); // This is the initial call
setInterval(function () {
getReCaptcha();
}, 60000);
</script>
{% endif %}
{% endblock %}
", "@Account/account/login.html.twig", "/var/www/clients/client2/web42/web/pc/bundles/AccountBundle/Resources/views/account/login.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 3, "do" => 5, "set" => 11, "for" => 46);
static $filters = array("trans" => 11, "escape" => 20, "raw" => 40);
static $functions = array("pimcore_head_script" => 5, "form_start" => 58, "form_label" => 62, "form_widget" => 63, "form_help" => 65, "form_errors" => 68, "form_row" => 115, "path" => 119, "form_end" => 127, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'do', 'set', 'for'],
['trans', 'escape', 'raw'],
['pimcore_head_script', 'form_start', 'form_label', 'form_widget', 'form_help', 'form_errors', 'form_row', 'path', 'form_end', 'base_layout']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}