From 7600af4845aab987653554c80d71a25294dc254e Mon Sep 17 00:00:00 2001
From: Djalim Simaila
Date: Sat, 24 Feb 2024 22:46:03 +0000
Subject: [PATCH] fixed everything (mostly)
---
config/packages/security.yaml | 2 ++
templates/index.html.twig | 20 +++++++++++++++++++-
2 files changed, 21 insertions(+), 1 deletion(-)
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 %}
- Welcome to Frutti!
+ {% if app.user %}
+
+
Welcome to Frutti {{ app.user.userIdentifier }} !
+
+ {% else %}
+
+
Welcome to Frutti!
+
+ {% endif%}
Frutti is an application to create your own fruit record collection.
But what is a fruit record collection? 🤔
@@ -17,6 +25,15 @@
Start your fruit collection today!
+ {% if app.user %}
+ Check out your favorites
+ or
+ search for new disks.
+ {% else %}
Create an accountconnect to an existing one.
+ {% endif%}
{% endblock %}