{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% if collector.user %} {% set color_code = (collector.enabled and collector.authenticated) ? 'green' : 'yellow' %} {% set authentication_color_code = (collector.enabled and collector.authenticated) ? 'green' : 'red' %} {% set authentication_color_text = (collector.enabled and collector.authenticated) ? 'Yes' : 'No' %} {% else %} {% set color_code = collector.enabled ? 'red' : 'black' %} {% endif %} {% set text %} {% if collector.user %}
{% if collector.tokenClass != null %} {% endif %} {% elseif collector.enabled %} You are not authenticated. {% else %} The security is disabled. {% endif %} {% endset %} {% set icon %}| Username | {{ collector.user }} |
|---|---|
| Authenticated? | {% if collector.authenticated %} yes {% else %} no {% if not collector.roles|length %}(probably because the user has no roles){% endif %} {% endif %} |
| Roles | {{ collector.roles|yaml_encode }} |
| Token class | {{ collector.tokenClass }} |
No token
{% else %}The security component is disabled
{% endif %} {% endblock %}