Skip to content

Commit 75e3c85

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: Add post method attribute to json login
2 parents 34ddce5 + 8c080f4 commit 75e3c85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,8 @@ token (or whatever you need to return) and return the JSON response:
10721072
10731073
class ApiLoginController extends AbstractController
10741074
{
1075-
#[Route('/api/login', name: 'api_login')]
1075+
- #[Route('/api/login', name: 'api_login')]
1076+
+ #[Route('/api/login', name: 'api_login', methods: ['POST'])]
10761077
- public function index(): Response
10771078
+ public function index(#[CurrentUser] ?User $user): Response
10781079
{

0 commit comments

Comments
 (0)