File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
ReCaptchaMigration/Setup/Patch/Data Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,16 @@ private function copyRecaptchaKeys(string $scope): void
115
115
{
116
116
$ type = $ this ->getActiveRecaptchaType ();
117
117
if ($ type ) {
118
- $ this ->copyRecord (
119
- "msp_securitysuite_recaptcha/general/public_key " ,
118
+ $ publicKey = $ this ->scopeConfig ->getValue (
120
119
"recaptcha_ $ scope/type_ $ type/public_key "
121
120
);
121
+ $ publicKeyLegacy = $ this ->scopeConfig ->getValue (
122
+ 'msp_securitysuite_recaptcha/general/public_key '
123
+ );
124
+ if (!$ publicKey && $ publicKeyLegacy ) {
125
+ $ publicKeyEncrypted = $ this ->encryptor ->encrypt ($ publicKeyLegacy );
126
+ $ this ->writer ->save ("recaptcha_ $ scope/type_ $ type/public_key " , $ publicKeyEncrypted );
127
+ }
122
128
$ privateKey = $ this ->scopeConfig ->getValue (
123
129
"recaptcha_ $ scope/type_ $ type/private_key "
124
130
);
You can’t perform that action at this time.
0 commit comments