diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 246da82..708406d 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -36,4 +36,5 @@ security: # Note: Only the *first* access control that matches will be used access_control: # - { path: ^/admin, roles: ROLE_ADMIN } - - { path: ^(?!/(login|register|reset-password)), roles: ROLE_USER } + - { path: ^/admin, roles: ROLE_ADMIN } + - { path: ^(?!/(login|register|reset-password)), roles: ROLE_USER } \ No newline at end of file diff --git a/templates/app/user.html.twig b/templates/app/user.html.twig index ff1c2e5..d11cfa9 100644 --- a/templates/app/user.html.twig +++ b/templates/app/user.html.twig @@ -3,7 +3,40 @@ {% block title %}User{% endblock %} {% block body %} -
-

Hello {{ user.username }}!

-

+ {% for message in app.flashes('success') %} + + {% endfor %} + +
+

Hello {{ user.username }}!

+

+ +
+
+

Change your user data

+
+ + +
+
+ + +
+ + + + +
+
+ +
+

Delete Account

+ +
{% endblock %} diff --git a/templates/base.html.twig b/templates/base.html.twig index f021bc0..4850a40 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -16,37 +16,26 @@ - - +
{% block body %}{% endblock %}