-
Notifications
You must be signed in to change notification settings - Fork 767
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 Verify() method returns invalid-input-secret #237
Comments
Please check that you are passing the full key in the right format as retrieved from https://www.google.com/recaptcha/admin#list That error occurs, according to https://developers.google.com/recaptcha/docs/verify
|
I have the same problem and have never gotten this to work. I pass the correct key but no success. |
I encountered the same error and was able to resolve it. When you open secret keys in google page (https://www.google.com/recaptcha/admin/site/XXXXXXXXX/setup), then you'll see two keys: first one is for client-side, the second one is for Verify() method on the server-side. |
Same for me even using different key one for client side(site key) and other for server verification(secret key). Still I'm getting the error code ['invalid-input-secret'] |
Maybe a little late to the party. But changing the server side ReCaptcha class fixed it for me. Original code
changed to
Hope that helps someone. |
Thanks @faseelsaeed, changing constructor method from same as class to |
The solution presented by @faseelsaeed works very well. Thanks |
Thanks @faseelsaeed ! working like a charm ! |
Hello,
I am starting using this lib, and when I submit my form and verify the secret I got always 'invalid-input-secret' ?
Do you have any idea?
The text was updated successfully, but these errors were encountered: