Skip to content

Commit

Permalink
Remove csrf token from front subscribe form
Browse files Browse the repository at this point in the history
  • Loading branch information
julescournut committed Aug 24, 2021
1 parent 5429a4b commit 9784e5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.2.3</version>
<version>1.2.4</version>
<author>
<name>Julien Chanséaume</name>
<email>julien@thelia.net</email>
Expand Down
2 changes: 1 addition & 1 deletion Controller/StockAlertFrontOfficeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function subscribe()
{
$success = true;

$form = $this->createForm('stockalert.subscribe.form', 'form');
$form = $this->createForm('stockalert.subscribe.form', 'form', [], ['csrf_protection' => false]);

try {
$subscribeForm = $this->validateForm($form)->getData();
Expand Down

0 comments on commit 9784e5c

Please sign in to comment.