Hi francky06l,
I do need authentication, that line is just temporary to allow access to
test the login process. I've had to change it since because of another bug
mentioned in my second message. Code is now (temporarily):
Security::setHash('md5');
$this->Auth->loginRedirect = '/';
if ($this->params['controller'] == 'pages') {
$this->Auth->allow();
}
D.
francky06l wrote:
>
>
> I wounder why to use Auth if you do not need any authentication. Now
> allowing everything and be redirected to login ......is strange. You
> can set the login function for Auth to be null (never tried this), or
> any function of your choice ..
> What is the "rest" if no authentication ?
> cheers
>
> On Nov 17, 8:16 pm, Dodger <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> It was, at one stage, possible to use an empty login function and for the
>> Auth component to do the rest -- is this still so?
>>
>> I have this in my app_controller beforeFilter():
>>
>> $this->Auth->allow('*');
>> $this->Auth->loginRedirect = '/';
>>
>> And an empty login() function in my users_controller.
>>
>> When I submit data to that action, I am redirected to /users/login, and
>> I'm
>> not sure why.
>>
>> Any ideas?
>>
>> D.
>> --
>> View this message in
>> context:http://www.nabble.com/Auth-component----can-use-empty-login-function-...
>> Sent from the CakePHP mailing list archive at Nabble.com.
> >
>
>
--
View this message in context:
http://www.nabble.com/Auth-component----can-use-empty-login-function--tf4827793.html#a13812954
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---