diff --git a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig index 35df3b0157..83309a0baf 100644 --- a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig +++ b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig @@ -5,8 +5,8 @@ Security {% endset %} {% set text %} - {% if collector.authenticated %} - {{ collector.user }} + {% if collector.user %} + {{ collector.user }} ({{ collector.authenticated ? 'auth.' : 'not auth.' }}) {% elseif collector.enabled %} not authenticated {% else %} @@ -25,10 +25,11 @@ {% block panel %}

Security

- {% if collector.authenticated %} + {% if collector.user %}

Username: {{ collector.user }}
- Roles: {{ collector.roles|yaml_encode }} + Authenticated? {{ collector.authenticated ? 'yes' : 'no' }}
+ Roles: {{ collector.roles|yaml_encode }}

{% elseif collector.enabled %}