Welcome to Frutti!
+ {% if app.user %} +Welcome to Frutti {{ app.user.userIdentifier }} !
+Welcome to Frutti!
+Frutti is an application to create your own fruit record collection.
diff --git a/config/packages/security.yaml b/config/packages/security.yaml
index 905cf2d..c2ca855 100644
--- a/config/packages/security.yaml
+++ b/config/packages/security.yaml
@@ -46,6 +46,8 @@ security:
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
- { path: ^/favorites, roles: ROLE_USER }
+ - { path: ^/search, roles: ROLE_USER }
+
when@test:
security:
diff --git a/templates/index.html.twig b/templates/index.html.twig
index b5791f3..ca32682 100644
--- a/templates/index.html.twig
+++ b/templates/index.html.twig
@@ -1,7 +1,15 @@
{% extends 'base.html.twig' %} {% block title %}Welcome to Frutti!{% endblock %}
{% block body %}
Frutti is an application to create your own fruit record collection.Welcome to Frutti!
+ {% if app.user %}
+ Welcome to Frutti {{ app.user.userIdentifier }} !
+ Welcome to Frutti!
+
But what is a fruit record collection? 🤔
@@ -17,6 +25,15 @@
Create an accountconnect to an existing one.
+ {% endif%} {% endblock %}