as you said - there is a lot of magic going on. so besides the login() 
statement there is nothing else

but you can put these in your app controller - they will tell you more:


protected function _autoLogin() {
$this->log('SUCCESS - ' . $this->Session->read('Auth.User.id'), 
'autologin');
 if (Configure::read('debug') > 0) {
$this->Common->flashMessage('AutoLogin', 'info');
}
}

protected function _autoLoginError() {
$this->log('ERROR - ' . $this->Session->read('Auth.User.id'), 'autologin');

if (Configure::read('debug') > 0) {
$this->Common->flashMessage('AutoLogin Error!', 'info');
}
}

you just need to switch the flashMessage statement against yours (or the 
default cake one)


Am Sonntag, 8. April 2012 14:19:57 UTC+2 schrieb heohni:
>
> well, I can see the checkbox, because of
> if (Configure::read('AutoLogin.active')) {
> echo $this->Form->input('auto_login', array('type'=>'checkbox', 
> 'label'=>__('Remember on this computer')));
> }
>
> 'requirePrompt' => true // no changes made here
>
> But I belive that the point is the redirection part. I will dive into that.
> I am not really sure if I understand what you said before...
>
> where do I have to debug what?
>
> don't you have an example login function from one of your projects where I 
> can study the code and learn from it?
>

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

Reply via email to