File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Resources/views/Collector Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{% extends ' @WebProfiler/Profiler/layout.html.twig' %}
2
2
3
3
{% block toolbar %}
4
- {% if collector .user %}
4
+ {% if collector .tokenClass %}
5
5
{% set color_code = (collector .enabled and collector .authenticated ) ? ' green' : ' yellow' %}
6
6
{% set authentication_color_code = (collector .enabled and collector .authenticated ) ? ' green' : ' red' %}
7
7
{% set authentication_color_text = (collector .enabled and collector .authenticated ) ? ' Yes' : ' No' %}
8
8
{% else %}
9
9
{% set color_code = collector .enabled ? ' red' : ' black' %}
10
10
{% endif %}
11
11
{% set text %}
12
- {% if collector .user %}
12
+ {% if collector .tokenClass %}
13
13
<div class =" sf-toolbar-info-piece" >
14
14
<b >Logged in as</b >
15
15
<span class =" sf-toolbar-status sf-toolbar-status-{{ color_code }}" >{{ collector .user }}</span >
47
47
48
48
{% block panel %}
49
49
<h2 >Security</h2 >
50
- {% if collector .user %}
50
+ {% if collector .tokenClass %}
51
51
<table >
52
52
<tr >
53
53
<th >Username</th >
You can’t perform that action at this time.
0 commit comments