Sunday, April 8, 2012

Re: Auth->userScope is getting ignored

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
GTalk: vitorpc.18@gmail.com
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: