for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
/**
* Class SecurityController.
*/
class SecurityController extends AbstractController
{
* @Route("/login", name="login")
public function login(AuthenticationUtils $authenticationUtils): Response
$error = $authenticationUtils->getLastAuthenticationError();
$lastUsername = $authenticationUtils->getLastUsername();
return $this->render('@ChamiloCore/Index/vue.html.twig', [
'last_username' => $lastUsername,
'error' => $error,
]);
}
* @Route("/login_json", name="login_json")
public function loginJson(AuthenticationUtils $authenticationUtils): Response
return $this->render('@ChamiloCore/login.html.twig', [