initial commit
This commit is contained in:
		@@ -8,9 +8,6 @@ use Symfony\Component\HttpFoundation\Response;
 | 
			
		||||
use Symfony\Component\Routing\Annotation\Route;
 | 
			
		||||
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
class SecurityController extends AbstractController
 | 
			
		||||
{
 | 
			
		||||
    #[Route(path: '/login', name: 'app_login')]
 | 
			
		||||
@@ -18,16 +15,15 @@ class SecurityController extends AbstractController
 | 
			
		||||
    {
 | 
			
		||||
        return $this->render(view: 'security/login.html.twig', parameters: [
 | 
			
		||||
            'error' => $authenticationUtils->getLastAuthenticationError(),
 | 
			
		||||
			'last_username' => $authenticationUtils->getLastUsername()
 | 
			
		||||
            'last_username' => $authenticationUtils->getLastUsername(),
 | 
			
		||||
        ]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
	
 | 
			
		||||
    /**
 | 
			
		||||
     * @return mixed
 | 
			
		||||
     */
 | 
			
		||||
    #[Route(path: '/logout', name: 'app_logout')]
 | 
			
		||||
	public function logout()
 | 
			
		||||
    public function logout(): mixed
 | 
			
		||||
    {
 | 
			
		||||
        throw new Exception(message: 'Logout should never be reached.');
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user