Untested login
This commit is contained in:
18
src/Controller/SecurityController.php
Normal file
18
src/Controller/SecurityController.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
|
||||
class SecurityController extends AbstractController
|
||||
{
|
||||
#[Route('/login', name: 'app_login')]
|
||||
public function index(): Response
|
||||
{
|
||||
return $this->json([
|
||||
$this->getUser()?->getId() ?? null
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user