Welcome Guest, Not a member yet? Register   Sign In
ReCAPTCHA library - ignited
#81

[eluser]Lit_Tiger[/eluser]
Please try that one..
http://ellislab.com/forums/viewreply/864505/
#82

[eluser]wwwrun[/eluser]
Hi, there is a major bug in:

[quote author="Lit_Tiger" date="1299257508"]

To check the answer from client

Code:
$resp = $this->recaptcha->recaptcha_check_answer (
  $this->input->ip_address(),
  $this->input->post('recaptcha_challenge_field', true),
  $this->input->post('recaptcha_challenge_field', true)
);
[/quote]

Fixed version:

Code:
$resp = $this->recaptcha->recaptcha_check_answer(
  $this->input->ip_address(),
  $this->input->post('recaptcha_challenge_field', true),
  $this->input->post('recaptcha_response_field', true)
);

Hope it saves some debugging time ^^
cheers
#83

[eluser]Lit_Tiger[/eluser]
Oh, Ya,, Thanks you.
I forget to change it when i copy .
Tongue
#84

[eluser]austintbiggs[/eluser]
I'm wondering what I'm doing wrong, once I copy and paste the code from the demo it breaks. Saying that $recaptcha does not exist. What am I doing incorrectly? How do you embed the ReCaptcha into a page?
#85

[eluser]Bangon Kali[/eluser]
Thanks man! This works! But I do agree with the others requesting about getting rid of the short tags for the next release. I do like short tags but I keep away from it as much as possible.
#86

[eluser]JamieBarton[/eluser]
Hey

All I keep getting is 'Incorrect Security Image Response'

I'm not sure how to begin debugging this.. Can anyone recommend anything?


Regards,
Jamie
#87

[eluser]Bangon Kali[/eluser]
You might want to check the file /application/config/form_validation.php.

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config = array(
  'album/index' => array(
    array(
      'field' => 'recaptcha_response_field',
      'label' => 'lang:recaptcha_field_name',
      'rules' => 'required|callback_check_captcha'
    )
  )
);

The statement 'album/index' should contain the control/function where the recaptcha code is going to be validated. In my case, the index function of my album control uses the recaptcha, hence i would put that there.
#88

[eluser]JamieBarton[/eluser]
Hey

Is it possible to put it in the controller, eg;

Code:
$this->form_validation->set_rules('recaptcha_response_field', 'Security Image', 'required|callback__check_captcha');

I don't like having the form_validation.php config file... Nothing else uses it in my app.

Thanks in advance Smile
#89

[eluser]w0bbes[/eluser]
Can't get this to work with other validations (keep saying "Incorrect Security Image Response")...

Does anyone have a solution?
#90

[eluser]Lit_Tiger[/eluser]
please try my one
http://ellislab.com/forums/viewreply/864505/




Theme © iAndrew 2016 - Forum software by © MyBB