File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Captcha/Plugin Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class CheckCaptchaOnStorefront
24
24
*
25
25
* @param HelperCaptcha $helper
26
26
* @param HttpContext $httpContext
27
+ * @param ScopeConfigInterface $scopeConfig
27
28
*/
28
29
public function __construct (
29
30
private readonly HelperCaptcha $ helper ,
@@ -46,7 +47,10 @@ public function afterGetTemplate(
46
47
?string $ result
47
48
): string {
48
49
// Check the value for recaptcha_frontend/type_for/customer_login
49
- $ recaptchaType = $ this ->scopeConfig ->getValue ('recaptcha_frontend/type_for/customer_login ' , ScopeInterface::SCOPE_WEBSITE );
50
+ $ recaptchaType = $ this ->scopeConfig ->getValue (
51
+ 'recaptcha_frontend/type_for/customer_login ' ,
52
+ ScopeInterface::SCOPE_WEBSITE
53
+ );
50
54
51
55
if ($ this ->isLoggedIn () || (!$ this ->helper ->getConfig ('enable ' ) && $ recaptchaType === null )) {
52
56
return '' ;
You can’t perform that action at this time.
0 commit comments