try this:
$this->Auth->authenticate = array(
AuthComponent::ALL => array(
 'userModel' => 'User',
'fields' => array(
 'username' => 'test',
'password' => 'test',
 ),
'scope' => array(
'User.usr_active' => 1,
 )
),
'Form'
 );

http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html


2012/4/8 heohni <[email protected]>

> 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
*Vitor Pacheco*
*Skype: vitor.pacheco.costa
Msn: [email protected]*
*GTalk: [email protected]**
**Cel.: 71 8626-7909
Tel.: 71 3378-5778 /** 71 3287-3475*

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to