From 9bae324447623fda749d882fbf5e8f847a5b60fd Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Wed, 23 Apr 2025 23:35:08 +0200 Subject: [PATCH] Enhance login and navigation templates with authentication checks --- templates/backoffice/nav.html.twig | 30 ++++++++++++++++-------------- templates/login/login.html.twig | 2 +- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/templates/backoffice/nav.html.twig b/templates/backoffice/nav.html.twig index f4c1c95..d4a3eef 100644 --- a/templates/backoffice/nav.html.twig +++ b/templates/backoffice/nav.html.twig @@ -10,19 +10,21 @@ aria-label="Toggle navigation"> - + {% if is_granted('IS_AUTHENTICATED') %} + + {% endif %} diff --git a/templates/login/login.html.twig b/templates/login/login.html.twig index 850b3c3..97e9fa9 100644 --- a/templates/login/login.html.twig +++ b/templates/login/login.html.twig @@ -9,7 +9,7 @@ {% else %}
-

{{ 'Please sign in'|trans }}

+

{{ 'Please sign in'|trans }}