Skip to content

Commit 79e8513

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Add post method attribute to json login
2 parents 2ec2171 + 68aa96d commit 79e8513

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)