|
20 | 20 | <plugin sortOrder="1" name="inject_recaptcha_in_authentication_popup" |
21 | 21 | type="Magento\ReCaptchaCustomer\Plugin\Block\Account\InjectRecaptchaInAuthenticationPopup"/> |
22 | 22 | </type> |
23 | | - <type name="Magento\Customer\ViewModel\LoginButton"> |
24 | | - <plugin sortOrder="1" name="recaptcha_disable_login_button" |
25 | | - type="Magento\ReCaptchaCustomer\Plugin\Customer\DisableLoginButton"/> |
26 | | - </type> |
27 | | - <type name="Magento\Customer\ViewModel\CreateAccountButton"> |
28 | | - <plugin sortOrder="1" name="recaptcha_disable_create_account_button" |
29 | | - type="Magento\ReCaptchaCustomer\Plugin\Customer\DisableCreateAccountButton"/> |
30 | | - </type> |
31 | | - <type name="Magento\Customer\ViewModel\ForgotPasswordButton"> |
32 | | - <plugin sortOrder="1" name="recaptcha_disable_forgot_password_button" |
33 | | - type="Magento\ReCaptchaCustomer\Plugin\Customer\DisableForgotPasswordButton"/> |
| 23 | + <type name="Magento\Framework\View\Element\ButtonLockManager"> |
| 24 | + <arguments> |
| 25 | + <argument name="buttonLockPool" xsi:type="array"> |
| 26 | + <item name="customer_create_form_submit" xsi:type="object">Magento\ReCaptchaCustomer\Model\ButtonLock\CustomerCreateFormSubmit</item> |
| 27 | + <item name="customer_edit_form_submit" xsi:type="object">Magento\ReCaptchaCustomer\Model\ButtonLock\CustomerEditFormSubmit</item> |
| 28 | + <item name="customer_forgot_password_form_submit" xsi:type="object">Magento\ReCaptchaCustomer\Model\ButtonLock\CustomerForgotPasswordFormSubmit</item> |
| 29 | + <item name="customer_login_form_submit" xsi:type="object">Magento\ReCaptchaCustomer\Model\ButtonLock\CustomerLoginFormSubmit</item> |
| 30 | + </argument> |
| 31 | + </arguments> |
34 | 32 | </type> |
| 33 | + <virtualType name="Magento\ReCaptchaCustomer\Model\ButtonLock\CustomerCreateFormSubmit" type="Magento\ReCaptchaUi\Model\ButtonLock"> |
| 34 | + <arguments> |
| 35 | + <argument name="buttonCode" xsi:type="string">customer_create_form_submit</argument> |
| 36 | + <argument name="reCaptchaId" xsi:type="string">customer_create</argument> |
| 37 | + </arguments> |
| 38 | + </virtualType> |
| 39 | + <virtualType name="Magento\ReCaptchaCustomer\Model\ButtonLock\CustomerEditFormSubmit" type="Magento\ReCaptchaUi\Model\ButtonLock"> |
| 40 | + <arguments> |
| 41 | + <argument name="buttonCode" xsi:type="string">customer_edit_form_submit</argument> |
| 42 | + <argument name="reCaptchaId" xsi:type="string">customer_edit</argument> |
| 43 | + </arguments> |
| 44 | + </virtualType> |
| 45 | + <virtualType name="Magento\ReCaptchaCustomer\Model\ButtonLock\CustomerForgotPasswordFormSubmit" type="Magento\ReCaptchaUi\Model\ButtonLock"> |
| 46 | + <arguments> |
| 47 | + <argument name="buttonCode" xsi:type="string">customer_forgot_password_form_submit</argument> |
| 48 | + <argument name="reCaptchaId" xsi:type="string">customer_forgot_password</argument> |
| 49 | + </arguments> |
| 50 | + </virtualType> |
| 51 | + <virtualType name="Magento\ReCaptchaCustomer\Model\ButtonLock\CustomerLoginFormSubmit" type="Magento\ReCaptchaUi\Model\ButtonLock"> |
| 52 | + <arguments> |
| 53 | + <argument name="buttonCode" xsi:type="string">customer_login_form_submit</argument> |
| 54 | + <argument name="reCaptchaId" xsi:type="string">customer_login</argument> |
| 55 | + </arguments> |
| 56 | + </virtualType> |
35 | 57 | </config> |
0 commit comments