are trying to use no longer exist.
userModel
userScope
loginError
loginRedirect
All these properties are gone now. You also have to call Auth-
>login() in your controller, that magic was removed. I tried to
detail most of the changes in http://cakephp.lighthouseapp.com/projects/42648/20-auth-guide
if there is something that is still unclear, I'd be happy to update
the docs, as I doubt you'll be the only person to have these issues.
-Mark
On May 24, 2:06 pm, "MaJerle.Eu" <tilen.maje...@gmail.com> wrote:
> Hi to all, expecially to CakePHP developer, Mark Story...
>
> this is more question for you Mark, probably you are only who knows
> what is my problem, so, in cakephp <= 2.0.0-dev this code works
> perfect...
>
> my code is in image, link belowhttp://i55.tinypic.com/2j2i236.png
>
> {{{
> this is my custom component, where i have configured authentication
>
> and AppController::isAdminAction() is my own method, to check if is
> admin action, it looks in params to check...
>
> }}}
>
> ...but now, on 2.0.0-alpha this code works good only in 1 way, so...
> if user doesn't have access to some action, then he is redirected to
> login page, and message "You don't have access to this page. Please
> log in!" IS displayed.
>
> But when i click on login button on this page, page is refreshed but
> nothing happend, no error message, no redirect, i check my
> UsersController::admin_login and i make pr($this->request->data) but
> there is no data,
> in beforeFilter there was data, but password was not hashed
> automatically...
>
> so what i have to do, if i want that my auth component work on 2.0.0-
> alpha version
>
> PS: i check AuthComponent file and read all manual before property is
> declared and all, but i don't understand anything...
>
> Thanks to all, who knows how to resolve my problem...:)
--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment