<?php
namespace App\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;
#[Route(path: '/')]
class AuthController extends AbstractController
{
/**
* Auth Login Action
* Das Routing ist im routing.yml File definiert!
*/
#[Route(path: '/login', name: 'auth_login')]
public function login(AuthenticationUtils $authenticationUtils): Response
{
return $this->render('Auth/login.html.twig', [
'last_username' => $authenticationUtils->getLastUsername(),
'error' => $authenticationUtils->getLastAuthenticationError(),
]);
}
/**
* Auth Logout Action
* (erfasst, damit im System vorhanden, Rest macht die Firewall).
*/
#[Route(path: '/logout', name: 'auth_logout')]
public function logout()
{
}
/**
* Auth Login Check Action
* (erfasst, damit im System vorhanden, Rest macht die Firewall).
*/
#[Route(path: '/login-check', name: 'auth_logincheck')]
public function loginCheck()
{
}
}