Skip to content

Commit 2de6064

Browse files
security-package/issues/123: reCAPTCHA adapters modularity - bugfixes.
1 parent bcde217 commit 2de6064

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ define(
122122
},
123123
'expired-callback': function () {
124124
me.validateReCaptcha(false);
125-
}
125+
},
126+
'size': 'invisible'
126127
},
127128
this.settings.rendering
128129
);

ReCaptchaUi/Model/UiConfigResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ public function get(string $key): array
6666
__('UI config provider for "%type" is not configured.', ['type' => $captchaType])
6767
);
6868
}
69-
return $this->captchaUiConfigProviders[$key]->get();
69+
return $this->captchaUiConfigProviders[$captchaType]->get();
7070
}
7171
}

ReCaptchaVersion2Checkbox/etc/adminhtml/system.xml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<field id="private_key" translate="label" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="0"
1515
showInStore="0" canRestore="0">
1616
<label>Google API Secret Key</label>
17+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
1718
</field>
1819

1920
<field id="theme" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="0"
@@ -51,6 +52,7 @@
5152
<field id="private_key" translate="label" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="1"
5253
showInStore="0" canRestore="0">
5354
<label>Google API Secret Key</label>
55+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
5456
</field>
5557

5658
<field id="theme" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1"

ReCaptchaVersion2Invisible/etc/adminhtml/system.xml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<field id="private_key" translate="label" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="0"
1515
showInStore="0" canRestore="0">
1616
<label>Google API Secret Key</label>
17+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
1718
</field>
1819

1920
<field id="position" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="0"
@@ -36,6 +37,7 @@
3637
<field id="private_key" translate="label" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="1"
3738
showInStore="0" canRestore="0">
3839
<label>Google API Secret Key</label>
40+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
3941
</field>
4042

4143
<field id="position" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1"

ReCaptchaVersion3Invisible/etc/adminhtml/system.xml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<field id="private_key" translate="label" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="0"
1515
showInStore="0" canRestore="0">
1616
<label>Google API Secret Key</label>
17+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
1718
</field>
1819

1920
<field id="score_threshold" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0"
@@ -46,6 +47,7 @@
4647
<field id="private_key" translate="label" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="1"
4748
showInStore="0" canRestore="0">
4849
<label>Google API Secret Key</label>
50+
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
4951
</field>
5052

5153
<field id="score_threshold" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0"

0 commit comments

Comments
 (0)