Skip to content

Commit

Permalink
Fix callback controller redirect (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Yaroslav Andrusenko <[email protected]>
  • Loading branch information
Basharabum and Yaroslav Andrusenko committed Mar 19, 2020
1 parent a0250cd commit 88f6f22
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Controller/Frontend/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@

namespace Mygento\Kkm\Controller\Frontend;

use Magento\Framework\App\CsrfAwareActionInterface;
use Magento\Framework\App\Request\InvalidRequestException;
use Magento\Framework\App\RequestInterface;
use Magento\Framework\Controller\ResultFactory;

class Callback extends \Magento\Framework\App\Action\Action
class Callback extends \Magento\Framework\App\Action\Action implements CsrfAwareActionInterface
{
/**
* @var \Mygento\Kkm\Model\Atol\ResponseFactory
Expand Down Expand Up @@ -102,4 +105,20 @@ public function execute()

return $result;
}

/**
* @inheritDoc
*/
public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException
{
return null;
}

/**
* @inheritDoc
*/
public function validateForCsrf(RequestInterface $request): ?bool
{
return true;
}
}

0 comments on commit 88f6f22

Please sign in to comment.