Skip to content

Commit 5ca903d

Browse files
Merge branch '5.4' into 6.0
* 5.4: [WebProfilerBundle] Tweak the colors of the security panel Add a setter on DateTimeNormalizer to change the default context at runtime [FrameworkBundle] Fix default PHP attributes support in validation and serializer configuration when doctrine/annotations is not installed with PHP 8
2 parents 22dbd24 + cdb1b6a commit 5ca903d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Resources/views/Collector/security.html.twig

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@
44

55
{% block toolbar %}
66
{% if collector.firewall %}
7-
{% if collector.token %}
8-
{% set is_authenticated = collector.enabled and collector.authenticated %}
9-
{% set color_code = not is_authenticated ? 'yellow' %}
10-
{% else %}
11-
{% set color_code = '' %}
12-
{% endif %}
7+
{% set color_code = collector.enabled and not collector.authenticatorManagerEnabled ? 'yellow' %}
138

149
{% set icon %}
1510
{{ include('@Security/Collector/icon.svg') }}
@@ -36,7 +31,7 @@
3631

3732
<div class="sf-toolbar-info-piece">
3833
<b>Authenticated</b>
39-
<span class="sf-toolbar-status sf-toolbar-status-{{ is_authenticated ? 'green' : 'yellow' }}">{{ is_authenticated ? 'Yes' : 'No' }}</span>
34+
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.authenticated ? 'green' : 'yellow' }}">{{ collector.authenticated ? 'Yes' : 'No' }}</span>
4035
</div>
4136

4237
<div class="sf-toolbar-info-piece">

0 commit comments

Comments
 (0)