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 2ec2171 + 68aa96d commit 79e8513Copy full SHA for 79e8513
security.rst
@@ -1107,7 +1107,8 @@ token (or whatever you need to return) and return the JSON response:
1107
1108
class ApiLoginController extends AbstractController
1109
{
1110
- #[Route('/api/login', name: 'api_login')]
+ - #[Route('/api/login', name: 'api_login')]
1111
+ + #[Route('/api/login', name: 'api_login', methods: ['POST'])]
1112
- public function index(): Response
1113
+ public function index(#[CurrentUser] ?User $user): Response
1114
0 commit comments