Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Auth 'plugin' key and AutoLogin->settings['plugin'] #14

Closed
WylieB opened this issue Jan 12, 2012 · 2 comments
Closed

Auth 'plugin' key and AutoLogin->settings['plugin'] #14

WylieB opened this issue Jan 12, 2012 · 2 comments

Comments

@WylieB
Copy link

WylieB commented Jan 12, 2012

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.

@WylieB
Copy link
Author

WylieB commented Jan 12, 2012

In my app, it works if I $this->settings['plugin'] = Inflector::camelize($this->settings['plugin'])

@milesj
Copy link
Owner

milesj commented Jan 19, 2012

Fixed in 3.2.3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants