From 79e005bfbba3c4ff378dc8e8dcca32f141ded388 Mon Sep 17 00:00:00 2001 From: Abdellatif Ait boudad Date: Mon, 27 Apr 2015 16:29:18 +0100 Subject: [PATCH] [profiler][security] check authenticated user by tokenClass instead of username. --- .../Resources/views/Collector/security.html.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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