content.agreements
For more information, check out the Symfony doc.
content.agreements
For more information, check out the Symfony doc.
content.about
For more information, check out the Symfony doc.
Click on this button to show the source code of the Controller and template used to render this page.
public function agreements(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/agreements.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 'agreements' %}
{% 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.agreements'|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 %}