Hi All, The Security component was enabled in UserController of my app.There
is a sing up page. Every time when I click continue button , there will be a
blank page shown. But if I disable the Security component in my user
controller, it will work fine. I have no idea of what's wrong. Can someone
help me to point it out. Many thanks!

1.
signup.ctp
[code]
<form action="/users/signup" method="post" id="UserSignupForm">
<fieldset style="display: none;">
<input type="hidden" value="POST" name="_method"/>
<input type="hidden" id="Token1533132093"
value="1564dd96db938629aacbb9d7e60ad40d" name="data[_Token][key]"/>
</fieldset>
<h3>Step 1. New User Signup</h3>
<div>
//......
</form>
<input type="submit" value="Continue"/>
[/code]

2.
The singup action in UserController
[code]
function signup(){
if(!empty($this->data)){
$this->User->set( $this->data );
if ($this->User->validates()) {
//...
}
}
}
[/code]

My debugger info in beforeFilter in UserController
[debug]
function beforeFilter(){
parent::beforeFilter();
$token = $this->Session->read('_Token');
debug(unserialize($token));
}
[/debug]

[output]
*app\controllers\users_controller.php* (line *18*)

Array
(
    [key] => 1564dd96db938629aacbb9d7e60ad40d
    [expires] => 1243158966
    [allowedControllers] => Array
        (
        )

    [allowedActions] => Array
        (
        )

    [disabledFields] => Array
        (
        )

)

[/output]
-- 
Thanks
Joshua

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

Reply via email to