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 b6795e71be..f15836509c 100644 --- a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig +++ b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig @@ -1,7 +1,7 @@ {% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} - {% if collector.user %} + {% if collector.tokenClass %} {% 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' %} @@ -9,7 +9,7 @@ {% set color_code = collector.enabled ? 'red' : 'black' %} {% endif %} {% set text %} - {% if collector.user %} + {% if collector.tokenClass %}
Logged in as {{ collector.user }} @@ -47,7 +47,7 @@ {% block panel %}

Security

- {% if collector.user %} + {% if collector.tokenClass %}
Username