Comments (3)
Hi again,
The thing that worries me is screenreaders. I am not familiar with them but I must assume that at least some of them will read the "sentence for humans" aloud.
In order to make it compatible with the current implementation, it would have to accept a block in the initializer:
# config/initializers/invisible_captcha.rb
InvisibleCaptcha.setup do |config|
config.sentence_for_humans = { I18n.t("your_translation_key", "default value") }
end
But ideally it should accept strings too to make it compatible with existing implementations.
I think the PR will be small enough.
On the other hand, I'm preparing a new release here: #8. Any kind of feedback is much appreciated.
My view, especially in pre-1.0 releases, is: "release early, release often". I think the current state is good enough for making a new release. Any missing docs, etc can come in a 0.8.1 release if you want.
Buen trabajo estΓ‘is haciendo con el proyecto de Consul π
Gracias! La idea es usar invisible_captcha
en Consul :)
from invisible_captcha.
hi @kikito,
Thanks for your suggestion. But I'm not sure whether it is worth... The gem uses just a couple of strings:
- sentence_for_humans: text for real users, just in case the honeypot is visible (kind of fallback)
- timestamp_error_message: error message (flash message) when threshold is reached
And ideally a real user shouldn't see those messages frequently ... π
Would be enough (IMHO) to achieve that with:
# config/initializers/invisible_captcha.rb
InvisibleCaptcha.setup do |config|
config.sentence_for_humans = I18n.t("your_translation_key")
end
But locales are loaded after the initializers... so it doesn't work.
Anyway, if the integration is "easy" and doesn't involve much extra code, we could assess the idea, why not? What do you think?
On the other hand, I'm preparing a new release here: #8. Any kind of feedback is much appreciated.
PS. Buen trabajo estΓ‘is haciendo con el proyecto de Consul π
from invisible_captcha.
Hi @kikito, thanks a lot for your feedback and those PRs π―
I have some free time tomorrow, so I'll review it deeply, merge and cut a new version.
from invisible_captcha.
Related Issues (20)
- Adding recaptcha to handle the chrome auto fill bug HOT 5
- Undefined method remote_ip HOT 1
- Tips when used together with Sorcery gem. HOT 1
- By using I18n.with_locale(..) in app_controller action is not called HOT 3
- IP spinner validation when forms are added with JS HOT 1
- Timestamp validation when forms are submitted with JS HOT 1
- Option with dynamic honeypot (collection of default honeypots) does not use scope HOT 1
- Submit form on multi tabs HOT 3
- Potential spam detected for IP 127.0.0.1. Invisible Captcha spinner value mismatch HOT 2
- Markup not valid when run through HTML validator HOT 6
- Each spinner should have a unique HTML ID
- `#honeypot_spam?` does not use `:scope` option if `:honeypot` option is not also set. HOT 1
- InvisibleCaptcha::ControllerExt honeypot attribute ActiveSupport::Notifications dispatches an `invisible_captcha.spam_detected` event test is failing now HOT 10
- Edge case with scope changes in 2.1.0
- It's difficult to write tests HOT 3
- [Invisible Captcha] Potential spam detected for IP 127.0.0.1. Timestamp not found in session. HOT 13
- Captcha field visible in Rails 7.1 HOT 5
- Logic bug regarding spinner-based protection HOT 4
- What is the "IP based π spinner validation"? HOT 1
- New feature: Spam-Filtering on Post requests only HOT 1
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 invisible_captcha.