src/Controller/LoginController.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Boab\CmsBundle\Controller\BaseController;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
  8. class LoginController extends BaseController
  9. {
  10.     #[Route('/login'name'app_login')]
  11.     public function index(Request $requestAuthenticationUtils $authenticationUtils): Response
  12.     {
  13.         return $this->render('app/login.html.twig',[
  14.             'pageTitle' => 'Login',
  15.             "authError" => $authenticationUtils->getLastAuthenticationError(),
  16.             'isAjax' => $request->isXmlHttpRequest()
  17.         ]);
  18.     }
  19.     public function loginCheck(Request $request)
  20.     {
  21.     }    
  22. }