Skip to content

Commit

Permalink
Use up_vote CSRF token name
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 authored Sep 16, 2024
1 parent ae3a9ad commit 016ff4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/FavouriteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(private readonly GenerateHtmlClassService $classServ
#[IsGranted('ROLE_USER')]
public function __invoke(FavouriteInterface $subject, Request $request, FavouriteManager $manager): Response
{
$this->validateCsrf('favourite', $request->request->get('token'));
$this->validateCsrf('up_vote', $request->request->get('token'));

$manager->toggle($this->getUserOrThrow(), $subject);

Expand Down

0 comments on commit 016ff4d

Please sign in to comment.