Inform the login action:

public $components = array('Auth' => array(
    'loginAction' => array('controller' => 'users', 'action' => 'login' , 
'plugin' => 'CoasterCms')
));

Em quarta-feira, 6 de agosto de 2014 09h59min16s UTC-4, Sam Clauw escreveu:
>
> I reached the authentication part of my CakePHP based cms system, things 
> are going very well (thanks to you guys) ;)
> As in every application, I should ask for a username / password 
> combination when somebody tries to get into my CMS. This CMS is build as a 
> plugin and is called "CoasterCms". Without login, you can reach it by the 
> following url for example:
>
> http://new.bellewaerdefun.be/coaster_cms/attractions/index
>
>
> Now, when I change my CoasterCmsAppController.php and update my 
> $components variable with the "Auth" array value:
>
> class CoasterCmsAppController extends AppController
>> {
>>     ...
>>     
>>     public $components = array(
>>         'Session',
>>         'Paginator'/*,
>>         'Auth' => array(
>>             'loginRedirect' => array(
>>                 'plugin' => 'CoasterCms',
>>                 'controller' => 'attractions',
>>                 'action' => 'index'
>>             ),
>>             'logoutRedirect' => array(
>>                 'plugin' => 'CoasterCms',
>>                 'controller' => 'attractions',
>>                 'action' => 'index',
>>             ),
>>             'authenticate' => array(
>>                 'Form' => array(
>>                     'passwordHasher' => 'Blowfish'
>>                 )
>>             )
>>         )*/
>>     );
>> ...
>> }
>
>
> ... then I'm constantly redirected to the url:
>
> http://new.bellewaerdefun.be/users/login
>
>
> What's the reason of that and how can I change it so I can link it to the 
> plugin? 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to