milesj/cake-auto_login — Issue #14: Auth 'plugin' key and AutoLogin->settings['plugin']
Author: WylieB
Created: 2012-01-12 01:58:16+00:00
State: open

When setting my Auth, I use this:

$this->Auth->loginAction = array(
'plugin' => 'plugin_name',
'controller' => 'users',
'action' => 'login'
);

Yet in AutoLoginComponent the $controller->plugin == 'PluginName'
So in the beforeRedirect() function, the IF statement is never true and the cookie never saves. My Auth settings won't allow PluginName as the plugin key value which I find strange and the AutoLogin->settings are overwritten in your beforeRedirect() function.