try this:
$this->Auth->authenticate = array(
AuthComponent::ALL => array(
'userModel' => 'User',
'fields' => array(
'username' => 'test',
'password' => 'test',
),
'scope' => array(
'User.usr_active' => 1,
)
),
'Form'
);
2012/4/8 heohni <heidi.anselstetter@consultingteam.de>
Update:even if add this for testing
$this->Auth->fields = array('username' => 'test', 'password' => 'test' );This is also ignored...--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Vitor Pacheco
Skype: vitor.pacheco.costa
Msn: vitor-p.c@hotmail.com
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment