Comments (6)
I get the same error
from recaptcha.
I corrected it added in config/initializers/recapcha.rb like this:
Recaptcha.configure do |config|
config.public_key = '6Lcy3xxxxxxxxxxxxxxxxxxxxxx'
config.private_key = '6Lcy3xxxxxxxxxxxxxxxxxxxxxx'
config.proxy = 'http://www.google.com/recaptcha/api/verify'
end
from recaptcha.
I'm having hte same problem, but I have confirmed that my public and private key are set correctly in the configuration. I'm not sure why it's not working. In my local environment it seems to work, but on production it always returns false.
from recaptcha.
Same problem for me, on local environment it's working fine but on staging it's failing.
Does anyone have an idea why ?
from recaptcha.
I have similar issue, it works fine in development
, staging
and production
and always retuns false
in test
environment.
from recaptcha.
The best way to solve this is to just stub verify_recaptcha
before do
allow(controller).to receive(:verify_recaptcha).and_return(true)
end
from recaptcha.
Related Issues (20)
- recaptcha_v3 causing Content Security Policy: Ignoring “'unsafe-inline'” HOT 2
- TypeError with oddly shaped "g-recaptcha-response" params HOT 1
- Throw an error in verify_recaptcha if recaptcha_reply is empty? HOT 1
- grecaptcha is not defined in rails 6 on test environment HOT 2
- Support for recaptcha enterprise? HOT 1
- :callback on verify_recaptcha not working
- ReferenceError: grecaptcha is not defined HOT 3
- g-recaptcha-response-data got empty value on the first time load on 5.8.1 HOT 2
- recaptcha succeeds on view but verify_recaptcha fails in ruby HOT 3
- ActionView::Template::Error: undefined local variable or method `recaptcha_tags' for #<#<Class:0x000055bd2eb3da08>:0x000055bd2f577618> HOT 1
- Enterprise version HOT 5
- Rails 7 / Turbo : g-recaptcha-response is empty HOT 17
- invisible_recaptcha_tags - Redirecting to sessions page upon submission of recaptcha HOT 1
- ReferenceError: grecaptcha is not defined - reCAPTCHA verification failed, please try again. HOT 6
- Invalid API key when using Enterprise HOT 5
- Use www.recaptcha.net when www.google.com is not available? HOT 3
- invisible_recaptcha_tags doesn't work with turbo_streams
- TypeError: Cannot set properties of null at setInputWithRecaptchaResponseTokenForConnectProvider HOT 2
- Remove `json` gem explicit dependency
- No proper documentation/ methods for ENTERPRISE version. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recaptcha.