Skip to content

Commit

Permalink
Fixed FrontendController using session csrf token storage instead of …
Browse files Browse the repository at this point in the history
…our own memory token storage
  • Loading branch information
Toflar committed Apr 2, 2020
1 parent 2560349 commit 95f4dbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions core-bundle/src/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ services:
Contao\CoreBundle\Controller\FrontendController:
tags:
- controller.service_arguments
- { name: 'container.service_subscriber', id: 'contao.csrf.token_manager' }

Contao\CoreBundle\Controller\FrontendModule\TwoFactorController:
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,9 @@ public function testRegistersTheFrontendController(): void
'controller.service_arguments' => [
[],
],
'container.service_subscriber' => [
['id' => 'contao.csrf.token_manager'],
],
],
$definition->getTags()
);
Expand Down

0 comments on commit 95f4dbc

Please sign in to comment.