From 23a3f4968237d10a29ced49c45ccb15cfa7f1040 Mon Sep 17 00:00:00 2001 From: siemsonNarson Date: Tue, 28 Jan 2020 09:05:38 +0100 Subject: [PATCH 1/3] added csrf validation plugin file --- .../Plugin/RiskifiedCsrfValidatorSkip.php | 22 +++++++++++++++++++ app/code/Riskified/Decider/etc/di.xml | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php diff --git a/app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php b/app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php new file mode 100644 index 0000000..c03bb18 --- /dev/null +++ b/app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php @@ -0,0 +1,22 @@ +getModuleName() == 'decider') { + return; + } + $proceed($request, $action); + } +} \ No newline at end of file diff --git a/app/code/Riskified/Decider/etc/di.xml b/app/code/Riskified/Decider/etc/di.xml index 5438d75..2fc8402 100755 --- a/app/code/Riskified/Decider/etc/di.xml +++ b/app/code/Riskified/Decider/etc/di.xml @@ -33,4 +33,7 @@ + + + \ No newline at end of file From c57f5f10d463cccfd9a40122d932dca14b729526 Mon Sep 17 00:00:00 2001 From: siemsonNarson Date: Tue, 28 Jan 2020 09:18:52 +0100 Subject: [PATCH 2/3] renamed file --- .../Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php | 2 +- app/code/Riskified/Decider/etc/di.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php b/app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php index c03bb18..91ddec1 100644 --- a/app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php +++ b/app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php @@ -1,6 +1,6 @@ - + \ No newline at end of file From c2fb9d7f3158fffd3a5d9fcc510b91ff6b980791 Mon Sep 17 00:00:00 2001 From: siemsonNarson Date: Tue, 28 Jan 2020 09:34:14 +0100 Subject: [PATCH 3/3] renamed file --- .../{RiskifiedCsrfValidatorSkip.php => CsrfValidatorSkip.php} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app/code/Riskified/Decider/Plugin/{RiskifiedCsrfValidatorSkip.php => CsrfValidatorSkip.php} (100%) diff --git a/app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php b/app/code/Riskified/Decider/Plugin/CsrfValidatorSkip.php similarity index 100% rename from app/code/Riskified/Decider/Plugin/RiskifiedCsrfValidatorSkip.php rename to app/code/Riskified/Decider/Plugin/CsrfValidatorSkip.php