content.whatwedo
Para más información, consulta la documentación de Symfony.
content.whatwedo
Para más información, consulta la documentación de Symfony.
content.about
Para más información, consulta la documentación de Symfony.
Pulsa este botón para ver el código fuente del controlador y de la plantilla utilizados para crear esta página.
public function whatwedo(Request $request, AuthenticationUtils $helper): Response
{
// this statement solves an edge-case: if you change the locale in the login
// page, after a successful login you are redirected to a page in the previous
// locale. This code regenerates the referrer URL whenever the login page is
// browsed, to ensure that its locale is always the current one.
$this->saveTargetPath($request->getSession(), 'main', $this->generateUrl('admin_index'));
return $this->render('security/whatwedo.html.twig', [
// last username entered by the user (if any)
'last_username' => $helper->getLastUsername(),
// last authentication error (if any)
'error' => $helper->getLastAuthenticationError(),
]);
}
{% extends 'base.html.twig' %}
{% block body_id 'whatwedo' %}
{% block main %}
{% if error %}
<div class="alert alert-danger">
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
<div class="row">
<div class="well well-lg">
<p>
{{ 'content.whatwedo'|trans|raw }}
</p>
<p>
{{ 'help.more_information'|trans|raw }}
</p>
</div>
<div id="login-help" class="col-sm-7">
</div>
</div>
{% endblock %}
{% block sidebar %}
{{ parent() }}
{{ show_source_code(_self) }}
{% endblock %}