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

Recaptcha OnVerify Method not triggered when Captcha Size is Normal #2

Open
Zukqurnain opened this issue Oct 28, 2021 · 3 comments
Open
Labels
bug Something isn't working

Comments

@Zukqurnain
Copy link

Zukqurnain commented Oct 28, 2021

<ReCaptcha action="homepage" size="normal" siteKey="RECAPTCHA_PUBLIC_KEY" onVerify={(token) => submit(token)} submitted={submitted} />

I also need a Captcha Token So I can verify on server.
Thanks

@luciobenini luciobenini added the bug Something isn't working label Oct 28, 2021
@luciobenini
Copy link
Member

Size argument is passed directly to ReCaptcha function

window.grecaptcha.render(id, { sitekey: siteKey, badge, size, theme, })

The token is empty or you get a client error?

@Zukqurnain
Copy link
Author

I didn't receive any error on client side. and i didn't get token because onVerify method does not call.
I also added the example code below.

<ReCaptcha action="homepage" size="normal" siteKey="RECAPTCHA_PUBLIC_KEY" onVerify={(token) => submit(token)} submitted={false} />

@Zukqurnain
Copy link
Author

If you want I will fix this issue. Please Assign to me. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants