Skip to content

Commit 821e7c1

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Add post method attribute to json login
2 parents baee91e + 79e8513 commit 821e7c1

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
@@ -1107,7 +1107,8 @@ token (or whatever you need to return) and return the JSON response:
11071107
11081108
class ApiLoginController extends AbstractController
11091109
{
1110-
#[Route('/api/login', name: 'api_login')]
1110+
- #[Route('/api/login', name: 'api_login')]
1111+
+ #[Route('/api/login', name: 'api_login', methods: ['POST'])]
11111112
- public function index(): Response
11121113
+ public function index(#[CurrentUser] ?User $user): Response
11131114
{

0 commit comments

Comments
 (0)