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 64bb6d8 + 75e3c85 commit 68aa96dCopy full SHA for 68aa96d
security.rst
@@ -1121,7 +1121,8 @@ token (or whatever you need to return) and return the JSON response:
1121
1122
class ApiLoginController extends AbstractController
1123
{
1124
- #[Route('/api/login', name: 'api_login')]
+ - #[Route('/api/login', name: 'api_login')]
1125
+ + #[Route('/api/login', name: 'api_login', methods: ['POST'])]
1126
- public function index(): Response
1127
+ public function index(#[CurrentUser] ?User $user): Response
1128
0 commit comments