Skip to content

Commit 01b1f37

Browse files
security-package/issues/101: Migration update.
1 parent 9e34543 commit 01b1f37

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

ReCaptchaMigration/Setup/Patch/Data/MigrateConfigToRecaptchaModules.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ private function copyModuleSpecificRecords(string $scope): void
110110
$this->copyRecord("recaptcha/general/$specificRecord", "recaptcha_$scope/type_$module/$specificRecord");
111111
}
112112
}
113-
114113
}
115114

116115
/**
@@ -121,9 +120,9 @@ private function copyModuleSpecificRecords(string $scope): void
121120
private function getModuleSpecificRecords(): array
122121
{
123122
return [
124-
'recaptcha' => ['theme', 'size', 'lang'],
125-
'invisible' => ['position'],
126-
'recaptcha_v3' => ['score_threshold', 'position'],
123+
'recaptcha' => ['theme', 'lang', 'size'],
124+
'invisible' => ['theme', 'lang', 'position'],
125+
'recaptcha_v3' => ['theme', 'lang', 'score_threshold', 'position'],
127126
];
128127
}
129128

@@ -190,7 +189,7 @@ private function copyRecord(string $srcPath, string $dstPath): void
190189

191190
$connection->insert($configDataTable, $row);
192191
}
193-
};
192+
}
194193
}
195194

196195
/**

ReCaptchaMigration/composer.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
{
22
"name": "magento/module-re-captcha-migration",
3-
"version": "1.0.0",
4-
"description": "Google reCaptcha config migration for Magento2",
3+
"description": "Google reCAPTCHA config migration for Magento2",
54
"require": {
65
"php": "~7.1.3||~7.2.0||~7.3.0",
7-
"magento/framework": "102.0.*",
6+
"magento/framework": "*",
87
"magento/module-config": "*"
98
},
10-
"authors": [
11-
{
12-
"name": "Riccardo Tempesta",
13-
"email": "[email protected]"
14-
}
15-
],
169
"type": "magento2-module",
1710
"license": "OSL-3.0",
1811
"autoload": {

_metapackage/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"magento/module-re-captcha-contact": "*",
2929
"magento/module-re-captcha-customer": "*",
3030
"magento/module-re-captcha-frontend-ui": "*",
31+
"magento/module-re-captcha-migration": "*",
3132
"magento/module-re-captcha-newsletter": "*",
3233
"magento/module-re-captcha-review": "*",
3334
"magento/module-re-captcha-send-friend": "*",

0 commit comments

Comments
 (0)