Working with reCAPTCHA #2276
Answered
by
SimoTod
ercanertan
asked this question in
1. Help
-
Would be great if someone share the idea how to solve this common real case problem please. I have simple form which has email field only and trying to make this secure with Google reCAPTCHA. How can I access this.formData.recaptcha inside grecaptcha.execute method and wait until token come back to continue further? Thanks in advance!!
|
Beta Was this translation helpful? Give feedback.
Answered by
SimoTod
Oct 27, 2021
Replies: 1 comment 5 replies
-
I think you need to use an arrow function ( |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
ercanertan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you need to use an arrow function (
grecaptcha.execute('recaptcha_key', {action: 'submit'}).then((token) => {
) otherwise this inside your callback won't be the object you expect.