fballiano / openmage-cloudflare-turnstile

Cloudflare Turnstile module for OpenMage and Magento1 (captcha/recaptcha alternative)
5 stars 2 forks source link

"Incorrect Captcha" on specific page of checkout #3

Open toejam34 opened 2 months ago

toejam34 commented 2 months ago

Hi,

I can reproduce this error in both Chrome , Chromium edge and when in their relevant incognito mode.

This is using 0.4.0 verison of the addon and v20.9 OM

Fault : Incorrect Captcha occurs

Reproduceable steps ;

1) Add any item to cart. User can but doesnt need to be logged in at this point 2) Goto checkout , and login 3) In billing information hit the dropdown and select New Address. Type in some credentials. The Cloudflare Turnstil is marking as "success" however if you click continue you get an Incorrect CAPTCHA report.

This upsets the cart, hard refresh and select the previously on file address and the captcha error is revoked.

fballiano commented 2 months ago

Hi @toejam34, did it start happening after upgrading to 20.9 or anyway is there some change that may have triggered the malfunction?

toejam34 commented 2 months ago

Hi!Looking back at timelines I think this behaviour occurred prior to 20.9 as I had reports of other people receiving this error but I never managed to reproduce the error as I didn’t know what I was looking for. I’ll see if I can downgrade my test environment to validate Andy Sent from my iPhone On 2 Jun 2024, at 09:57, Fabrizio Balliano @.***> wrote: Hi @toejam34, did it start happening after upgrading to 20.9 or anyway is there some change that may have triggered the malfunction?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

fballiano commented 2 months ago

can you double check that the selectors in the backend configurations are se same as the xml file:

<selectors>.checkout-onepage-index #billing-new-address-form
.contacts-index-index #contactForm
.customer-account-create #form-validate
.customer-account-forgotpassword #form-validate
#newsletter-validate-detail
.catalog-product-view #review-form
.review-product-list #review-form
.wishlist-index-share #form-validate</selectors>

?

toejam34 commented 2 months ago
.checkout-onepage-index #billing-new-address-form .contacts-index-index #contactForm .customer-account-create #form-validate .customer-account-forgotpassword #form-validate #newsletter-validate-detail .catalog-product-view #review-form .review-product-list #review-form .wishlist-index-share #form-validate

Confirming they are as above :

image

toejam34 commented 2 months ago

Any further suggestions @fballiano ?

toejam34 commented 1 month ago

I am now on 20.10.0 and php8.3.9 and still experiencing people having their orders blocked with a failed captcha

fballiano commented 1 month ago

are you using the normal checkout of OM or some other checkout? I would disable the checkout selector in the meanwhile, I'm super busy lately so it's a bit of a problem

toejam34 commented 1 month ago

are you using the normal checkout of OM or some other checkout? I would disable the checkout selector in the meanwhile, I'm super busy lately so it's a bit of a problem

Standard OM checkout.

I can bide my time if you are super busy. As long as its recorded as an issue I am good.

Is there any way to disable just for the checkout part?

fballiano commented 1 month ago

remove the .checkout-onepage-index #billing-new-address-form selector from backend configuration

fballiano commented 1 month ago

I hope it's enough as there's a server part mmmmmmm I can't remember now, let's try and see

fballiano commented 1 month ago

otherwise I think it will need controller_action_predispatch_checkout_onepage_savebilling to be removed from config.xml

toejam34 commented 1 month ago

I hope it's enough as there's a server part mmmmmmm I can't remember now, let's try and see

Testing!

toejam34 commented 1 month ago

That seems to work fine. I cant replicate the fault.

Lets see if customers do!

fballiano commented 1 month ago

;-)