From ecd6bfaac19eefff0a97bdeb674fd4b4b1e88a9c Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 6 Sep 2018 16:52:20 +0200 Subject: [PATCH] Optimized login procedure --- application/config/packages/security.yaml | 1 - application/templates/frames/default.html.twig | 1 + .../frames/structure/message/flash_messages.html.twig | 5 +++++ application/templates/user/login.html.twig | 6 +++--- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 application/templates/frames/structure/message/flash_messages.html.twig diff --git a/application/config/packages/security.yaml b/application/config/packages/security.yaml index f3ae882..6649883 100644 --- a/application/config/packages/security.yaml +++ b/application/config/packages/security.yaml @@ -8,7 +8,6 @@ security: entity: class: App\Entity\User property: username - #in_memory: { memory: ~ } firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ diff --git a/application/templates/frames/default.html.twig b/application/templates/frames/default.html.twig index 60f05a8..348c5cf 100644 --- a/application/templates/frames/default.html.twig +++ b/application/templates/frames/default.html.twig @@ -1,6 +1,7 @@ {% extends "base.html.twig" %} {% block body %} {% include 'frames/structure/navbar.html.twig'%} +{% include 'frames/structure/message/flash_messages.html.twig'%}
{% block content %} diff --git a/application/templates/frames/structure/message/flash_messages.html.twig b/application/templates/frames/structure/message/flash_messages.html.twig new file mode 100644 index 0000000..9a5368c --- /dev/null +++ b/application/templates/frames/structure/message/flash_messages.html.twig @@ -0,0 +1,5 @@ +{% for message in app.flashes('notice') %} +
+ {{ message }} +
+{% endfor %} \ No newline at end of file diff --git a/application/templates/user/login.html.twig b/application/templates/user/login.html.twig index 47b76f0..bc69851 100644 --- a/application/templates/user/login.html.twig +++ b/application/templates/user/login.html.twig @@ -6,16 +6,16 @@

{% trans %}login{% endtrans %}

-
+