<?php
namespace App\Controller;
use Boab\CmsBundle\Controller\BaseController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
class LoginController extends BaseController
{
#[Route('/login', name: 'app_login')]
public function index(Request $request, AuthenticationUtils $authenticationUtils): Response
{
return $this->render('app/login.html.twig',[
'pageTitle' => 'Login',
"authError" => $authenticationUtils->getLastAuthenticationError(),
'isAjax' => $request->isXmlHttpRequest()
]);
}
public function loginCheck(Request $request)
{
}
}