From 720719f6b75b2621d9774ca02948bb342e13b055 Mon Sep 17 00:00:00 2001 From: Stephen Yeargin Date: Thu, 19 Mar 2020 23:27:49 -0500 Subject: [PATCH] Update login form. --- src/Controller/SecurityController.php | 4 + templates/security/login.html.twig | 112 +++++++++++++++++--------- 2 files changed, 77 insertions(+), 39 deletions(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index fa6ec34..663c580 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -19,6 +19,10 @@ public function login(AuthenticationUtils $authenticationUtils): Response // last username entered by the user $lastUsername = $authenticationUtils->getLastUsername(); + if ($error) { + $this->addFlash('error', $error->getMessage()); + } + return $this->render('security/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]); } } diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index 132d0b9..cfb963a 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -1,22 +1,70 @@ - - - + + - Login - - - + The Pacer - Login + {% block stylesheets %} {{ encore_entry_link_tags('app') }} {% endblock %} {% include '_includes/favicons.html.twig' %} {% include '_includes/ga_tracking.html.twig' %} + - -
+ + + -
- +
+ +
+

Please sign in

+ + + + +
+ +
+ + + {% block javascripts %} {{ encore_entry_script_tags('app') }} {% endblock %}