Using Cakephp 2.2.4 and the Recaptcha plugin 1.1 from CakeDC on a form. The page is SSL/HTTPS. When I submit form with correct recaptcha text entered the form resets and no messages.
have checked $this->request->data in the appropriate method in controller and no post is received by it.
Anyone come across this problem or have a solution ?
Thanks.
Extract from Controller code:
if ($this->request->is('post')) {
if ($this->Recaptcha->verify()) {
Extract from View:
echo $this->BootstrapForm->input('message', array(
'type' => 'textarea',
'required' => 'required',
'helpInline' => '<span class="label label-important">' . __('Required') . '</span> ')
);
?>
<?php echo $this->Recaptcha->display(array('recaptchaOptions'=>array('theme' => 'clean'))); ?>
<?php echo $this->BootstrapForm->submit(__('Submit'),array('class' => 'btn btn-primary'));?>
</fieldset>
<?php echo $this->BootstrapForm->end();?>
Have made no changes to model for recaptcha.
CakeDC plugin I am using is this one: