We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34ddce5 + 8c080f4 commit 75e3c85Copy full SHA for 75e3c85
security.rst
@@ -1072,7 +1072,8 @@ token (or whatever you need to return) and return the JSON response:
1072
1073
class ApiLoginController extends AbstractController
1074
{
1075
- #[Route('/api/login', name: 'api_login')]
+ - #[Route('/api/login', name: 'api_login')]
1076
+ + #[Route('/api/login', name: 'api_login', methods: ['POST'])]
1077
- public function index(): Response
1078
+ public function index(#[CurrentUser] ?User $user): Response
1079
0 commit comments