while upgrading to symfony 6.1

This commit is contained in:
2022-10-28 18:48:25 +02:00
parent 433603fad2
commit e97f8e43bf
58 changed files with 1743 additions and 4656 deletions

View File

@@ -18,13 +18,7 @@ class SecurityController extends AbstractController
#[Route(path: '/login', name: 'app_login')] // *** method post
public function login(AuthenticationUtils $authenticationUtils, IriConverterInterface $iriConverter): Response
{
if (!$this->isGranted(attribute: 'IS_AUTHENTICATED_FULLY')) {
return $this->json(data: [
'error' => 'Invalid login request'
], status: 400);
}
/** @var User $user */
$user = $this->getUser() ?? null;