Hello

i've tried this Captcha Components

http://bakery.cakephp.org/articles/view/improved-captcha-component

Great the captcha is show in my browser :) Yeah.
But no captcha checking. How do i get it, that the captcha will
checked....
This are my directories and files first
/cakePHP/app/controllers/components/captcha.php
/cakePHP/app/controllers/my_controller.php

this are the changes of my_controller.php
var $components = array ('Captcha');
var $helpers = array('Html','Form','Time', 'Datum','Captcha');
The Function i added..

function captcha(){
        $this->Captcha->show();
    }

into my_controller is an action to write an new entry into my db-table
function add(){
        $this->Captcha->case = true;
        if(!empty($this->data) && [b]$this->Captcha->protect()[/b]) {
            $this->Translate->create();
            if($this->Translate->save($this->data)) {
                $this->Session->setFlash('The Translation has been
saved');
                $this->redirect(array('action'=>'index'),null, true);
            } else {
                $this->Session->setFlash('The Translation has not been
saved. Try again');
            }
        }
    }

/cakePHP/app/views/helpers/captcha.php
/cakePHP/app/views/translates/add.ctp

The last line of my add.ctp is
<?php  echo $captcha->input(); ?>

So the code is downloaded and added into my cakePHP Framework. The
Captcha is showing when i call the add.ctp view.

How can i get it that the captcha will be checked.

The only change from me in my add action was the "bold" condition.

Can everyone help me please?

many greetings

marcus radisch
as

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to