Can anyone help me please! im tearing my hair out! :-D
I am working on a subscription website and have dropped in the Flexi Auth library to handle all my user management needs. I have created a relatively simple registration form and want to implement the reCaptcha library on it. I have managed to get the captcha box to show up on the form, no problems there, and it all seems to submit fine, but every time it submits It fails the captcha required validation.
I have checked the post data and it seems the captcha_response_field isn't being passed as part of the post data so Im wondering what im doing wrong?
I think its got to be something to do with the view... but ill post up my code anyway:
// Redirect user away from registration page if already logged in.
if ($this->flexi_auth->is_logged_in())
{
redirect('dashboard');
}
// If 'Registration' form has been submitted, attempt to register their details as a new account.
else if ($this->input->post('register_user'))
{
$this->auth_model->register_account();
}
// Get any status message that may have been set.
$this->data['message'] = (! isset($this->data['message'])) ? $this->session->flashdata('message') : $this->data['message'];
//send recaptcha info
$this->data['captcha'] = $this->flexi_auth->recaptcha(FALSE);
//Load the Selected Layout.
$this->load->view('registration/registration_form', $this->data);