Skip to content

Commit 68aa96d

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Add post method attribute to json login
2 parents 64bb6d8 + 75e3c85 commit 68aa96d

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
@@ -1121,7 +1121,8 @@ token (or whatever you need to return) and return the JSON response:
11211121
11221122
class ApiLoginController extends AbstractController
11231123
{
1124-
#[Route('/api/login', name: 'api_login')]
1124+
- #[Route('/api/login', name: 'api_login')]
1125+
+ #[Route('/api/login', name: 'api_login', methods: ['POST'])]
11251126
- public function index(): Response
11261127
+ public function index(#[CurrentUser] ?User $user): Response
11271128
{

0 commit comments

Comments
 (0)