Skip to content
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 accepts any input #4

Open
andranos opened this issue Aug 27, 2012 · 7 comments
Open

Recaptcha accepts any input #4

andranos opened this issue Aug 27, 2012 · 7 comments

Comments

@andranos
Copy link

Hi There

First of all, awesome plugin, It worked perfectly under my localhost.
The thing is, when i tried it on my server, it doesn't work
It accepts any input the users gave and this is using the same code i used for my localhost.
Also, i already tried several keys and of course, with the enable global domain so i'm 100% sure it's not my error
Anyone can help me with this issue?

@davidyell
Copy link
Contributor

Have you configured your form markup correctly?

@ghitesh
Copy link

ghitesh commented Jun 16, 2013

The thing is README is missing code for server side validation. I wasn't able to figure out the correct syntax so had to use a different plug-in

@davidyell
Copy link
Contributor

@ghitesh
Copy link

ghitesh commented Jun 17, 2013

Hi,
But then I think this Behaviour is not getting executed by default. Maybe the files needs to be moved to a different location and/or some other configuration is missing/not documented.

Also maybe you can also add another couple of lines on how to use this when SecurityComponent is on.

var $components = array('RequestHandler', 'Security' => array('unlockedFields' => array('recaptcha_challenge_field','recaptcha_response_field')));

@anuragji
Copy link

Hello,

I just implemented the Plugin into my Cake site and I am encountering the same issue - the plugin does not correctly validate i.e. it accepts any input.

The view looks like this:

$options = array( 'theme' => 'white', 'lang' => 'en'); 
echo $this->Recaptcha->show($options);
echo $this->Recaptcha->error();

In my controller I have added :

 public $components = array('Recaptcha.Recaptcha');
 public $helpers = array('Recaptcha.Recaptcha');

As well as

    Configure::load('Recaptcha.key');

in the action itself.

The Recaptcha form gets displayed correctly, but it does not throw an error when entering incorrect (or even no) text.

I am using Cake 2.4. Please advise

@xcy7e
Copy link

xcy7e commented Jun 10, 2015

Still no response? Wow...

@anuragji
Copy link

I ended up switching to a different plugin altogether, @xcy7e : https://github.com/CakeDC/recaptcha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants