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

Bugfix: enterprise recaptcha not loading properly #1526

Open
wants to merge 3 commits into
base: v3
Choose a base branch
from

Conversation

mateusmcordeiro
Copy link

i attempted to utilize the plugin with {enterprise: true}, but encountered an issue where the recaptchaLoaded promise was never resolved. This led to a halt in execution during the verification process, as the widgetId was not assigned, and neither proxy.execute nor proxy.render were resolving.

Copy link
Owner

@DanSnow DanSnow left a comment

Choose a reason for hiding this comment

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

Thanks for PR and sorry for the late reply.

const interval = setInterval(() => {
if (isLoaded()) {
recaptchaLoaded.resolve();
clearInterval(interval);
Copy link
Owner

Choose a reason for hiding this comment

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

The design here is rely on the onload callback from reCAPTCHA. So I didn't put a polling here. Does the onload callback not work with enterprise version?

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

Successfully merging this pull request may close these issues.

None yet

2 participants