Sunday, April 8, 2012

Re: AutoLoginComponent Question

If I do a debug($this->settings);
I get

array( 	'password' => '*****', 	'active' => true, 	'model' => 'User', 	'username' => 'username', 	'plugin' => '', 	'controller' => 'users', 	'loginAction' => 'login', 	'logoutAction' => 'logout', 	'cookieName' => 'autoLogin', 	'expires' => '+2 weeks', 	'redirect' => false, 	'requirePrompt' => true, 	'debug' => null
)

if (!$this->settings['active'] || !empty($user) || !$cookie || !$controller->request->is('get')) {
debug(!$this->settings['active']); => false
debug(!empty($user)); => false
debug(!$cookie); => true
debug(!$controller->request->is('get')); => true


--
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: