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
115115 {
116116 $ type = $ this ->getActiveRecaptchaType ();
117117 if ($ type ) {
118- $ this ->copyRecord (
119- "msp_securitysuite_recaptcha/general/public_key " ,
118+ $ publicKey = $ this ->scopeConfig ->getValue (
120119 "recaptcha_ $ scope/type_ $ type/public_key "
121120 );
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+ }
122128 $ privateKey = $ this ->scopeConfig ->getValue (
123129 "recaptcha_ $ scope/type_ $ type/private_key "
124130 );
You can’t perform that action at this time.
0 commit comments