getLastAuthenticationError(); if ($error) { $this->addFlash('notice', $error); } return $this->render("user/login.html.twig",[ 'last_username'=>$authenticationUtils->getLastUsername(), ]); } }