| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class SecurityController extends AbstractController |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @Route("/login", name="login") |
||
| 19 | */ |
||
| 20 | public function login(AuthenticationUtils $authenticationUtils): Response |
||
| 21 | { |
||
| 22 | $error = $authenticationUtils->getLastAuthenticationError(); |
||
| 23 | $lastUsername = $authenticationUtils->getLastUsername(); |
||
| 24 | |||
| 25 | return $this->render('@ChamiloCore/Index/vue.html.twig', [ |
||
| 26 | 'last_username' => $lastUsername, |
||
| 27 | 'error' => $error, |
||
| 28 | ]); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @Route("/login_json", name="login_json") |
||
| 33 | */ |
||
| 34 | public function loginJson(AuthenticationUtils $authenticationUtils): Response |
||
| 42 | ]); |
||
| 43 | } |
||
| 45 |