Skip to content

Commit 06127bf

Browse files
Add post method attribute to json login
1 parent 370e0d3 commit 06127bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ token (or whatever you need to return) and return the JSON response:
10541054
10551055
class ApiLoginController extends AbstractController
10561056
{
1057-
#[Route('/api/login', name: 'api_login')]
1057+
#[Route('/api/login', name: 'api_login', methods: ['POST'])]
10581058
- public function index(): Response
10591059
+ public function index(#[CurrentUser] ?User $user): Response
10601060
{

0 commit comments

Comments
 (0)