Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP fix(checkout): CHECKOUT-8264 Don't validate recaptcha if already validated #2697

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

animesh1987
Copy link
Contributor

What?

Don't validate recaptcha if it's not needed or is already validated.

Why?

  • TBD

Testing / Proof

  • TBD

@bigcommerce/team-checkout @bigcommerce/team-payments

return this._executeRecaptcha(store);
}
} else {
return of(createAction(SpamProtectionActionType.ExecuteActionNotNeeded, undefined));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we change the CustomerActionCreator to check the shouldExecuteSpamCheck flag instead, similar to how the check is implemented in PaymentStrategyActionCreator:

shouldExecuteSpamCheck
? this._spamProtectionActionCreator.verifyCheckoutSpamProtection()(store)
: empty(),

This approach will reduce the risk of change as it won't impact the payment step, which already has a check in place as shown above.

Copy link
Contributor Author

@animesh1987 animesh1987 Oct 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks DC. That seems good, that was my first thought as well 😄 Let me make that change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants