Giter VIP home page Giter VIP logo

Comments (5)

markets avatar markets commented on August 27, 2024 1

I just created two calls to invisible_captcha in controllers

👍

You're welcome!

I did the same for controller specs: https://github.com/markets/invisible_captcha/blob/master/spec/dummy/app/controllers/topics_controller.rb

from invisible_captcha.

markets avatar markets commented on August 27, 2024

Hi @duartemvix and thanks for trying this gem :)
Sorry, I'm not sure if I understand your issue... You are receiving data in the honeypot attribute "title"=>"mat", so this is considered as spam.

from invisible_captcha.

duartemvix avatar duartemvix commented on August 27, 2024

Hi @duartemvix and thanks for trying this gem :)
Sorry, I'm not sure if I understand your issue... You are receiving data in the honeypot attribute "title"=>"mat", so this is considered as spam.

It's a great gem and I've used a lot recently. But I have just recently tried to use it in a different way creating a honeypot.

But what happened up there is that whenever I filled :title with mat it didn't report as spam. The controller action went straight to its end and finished running.

I'm not sure if there was anything that I was missing.

from invisible_captcha.

markets avatar markets commented on August 27, 2024

Ah ok, I think the problem is caused by this array in the scope definition: scope: ['pages_fan', 'pages_contact']. If I'm not wrong, array is not supported here:

if params[honeypot].present? || (params[scope] && params[scope][honeypot].present?)

from invisible_captcha.

duartemvix avatar duartemvix commented on August 27, 2024

Ah ok, I think the problem is caused by this array in the scope definition: scope: ['pages_fan', 'pages_contact']. If I'm not wrong, array is not supported here:

if params[honeypot].present? || (params[scope] && params[scope][honeypot].present?)

I just created two calls to invisible_captcha in controllers. Now they're working.

Thanks for the support! 👍

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.