Giter VIP home page Giter VIP logo

Comments (5)

markets avatar markets commented on July 24, 2024

Hi @timokleemann 👋

I'll need more info to help you debug this, for example: gem version and settings. Your installation seems fine.

By the way, the most weird thing is:

The code used to work for months and hasn't been changed for many weeks

Do you make an upgrade during this period? During the latest months mostly all changes done are maintenance and stability (https://github.com/markets/invisible_captcha/blob/master/CHANGELOG.md), with no behavior changes for a ~year.

Thanks for reporting, keep in touch.

from invisible_captcha.

timokleemann avatar timokleemann commented on July 24, 2024

Hi @markets & thanks for getting back to me so swiftly.

This is an excerpt from my Gemfile.lock file:

    invisible_captcha (1.0.1)
      rails (>= 4.2)

No, as far as I know, I didn't do any upgrades pertaining to invisible_captcha in the last couple of months. I set it up sometime last year and it worked flawlessly ever since. Until today :-(

What could be the reason for one form being hidden and the other one not being hidden?

Apart from the code above, there are no "settings" for invisible_captcha anywhere in my code.

from invisible_captcha.

markets avatar markets commented on July 24, 2024

Hi @timokleemann 👋

What could be the reason for one form being hidden and the other one not being hidden?

Not sure, but if you didn't make any upgrade, this seems related to your app's code or changes on your side. Without seeing the code, it will be really hard for me to debug or give you more info. In case the repo is open source or you can create a minimal app that demonstrates the issue, I'll take a look.

I'm using the gem in several apps (Rails 5 & 6), using the invisible_captcha helper in different views, with no problems.

from invisible_captcha.

timokleemann avatar timokleemann commented on July 24, 2024

I couldn't get invisible_captcha to work on both forms. The CSS to hide the honeypot div was always generated for the first form but never for the second. So I simply removed invisible_captcha_styles from the <head> section of my layout file and created my own CSS:

[class^="title_"] {
	display: none;
}

This is the best fix I could find.

from invisible_captcha.

markets avatar markets commented on July 24, 2024

Hi again @timokleemann 👋

Some comments:

  • invisible_captcha_styles is not necessary by default, as styles are injected inline along with the honeypot
  • Without an example app that reproduces the error, it will be almost impossible to debug this
  • If that worked for you and it started failing suddenly without updating the plugin version, this should be related to code changes in your app

I'm going to close it for now, in case you can share with us an example app that demonstrates the error, please re-open and ping me, I'll look at it asap.

from invisible_captcha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.