I've been having similar problems myself but just haven't taken the
time to look into what's going on.

In my scenario I'm able to login and the Auth component authenticates
me but does not redirect me to the redirectLogin value.  After
submitting my information I end up on the login page still, and if I
manually type in an application URL I am able to access the
application no problem.

Like I said I haven't looked into this because I know this is Alpha..
Beta.. whatever and it's not stopping me from moving forward with
other development, but I have a feeling there might be a problem in
the redirect logic??

Also another scenario I will have autoRedirect = true and on the first
submission of the login page I will just end up at the login page
again.  If I re-enter my credentials and submit a second time I will
be forwarded to the URL I was requesting previously.


On Nov 8, 1:04 am, francky06l <[EMAIL PROTECTED]> wrote:
> The Auth is using the sha1 (by default) for hashing. It combines you
> Security.salt value and your password and hash using sha1. You can
> change the hashing I think (not sure, I haven't check in the code for
> a while).
>
> On Nov 8, 5:30 am, "Paolo Stancato" <[EMAIL PROTECTED]> wrote:
>
> > I am having troubles with Auth component too (but after the login
> > step). My code is very similar, except that I'm using in
> > AppController:
>
> > function isAuthorized() {
> >    // This should authorize any controller/action, even if I'm not
> > logged in, right?
> >    return true;
>
> > }
>
> > But when I try to access to any controller/action I'm being redirected
> > to users/login.
>
> > Thanks in advance!
>
> > 2007/11/8, Arne-Kolja Bachstein <[EMAIL PROTECTED]>:
>
> > > Hi there,
>
> > > I tried to implement a simple authentication using the new Auth
> > > component from CakePHP 1.2, but did not succeed. Maybe there's someone
> > > who can give me quick and dirty assistance with this?
>
> > > My goal is to implement the authentication basics directly into /app/
> > > app_controller.php rather than the users controller, as I think it
> > > could be easier then to make it "global", but any other ideas are also
> > > welcome, of course.
>
> > > Basically I tried this snippet that derelm pasted for me to build my
> > > authentication system:
> > >http://bin.cakephp.org/view/1369491463
> > > ... but as I already mentioned I failed.
>
> > > The main problem is, of course, that I cannot log in. When trying to
> > > login it sends me directly back to the login page as given in $this-
> > > >Auth->loginAction, but as I don't know how to output the error
> > > message, I can't tell what's the problem. Maybe it's the combination
> > > of my old md5'd varchar[50] field for the password, as I don't know
> > > how the password is hashed by  the component, but I don't really know.
> > > Doing a print_r on $this->Auth doesn't give me any hints too, except
> > > for the login data being posted, but nothing about the verification of
> > > it.
>
> > > Second problem would be, just to anticipate, that I'd had to check the
> > > user's login details in my default layout. So if you know how to talk
> > > to the auth component from there, let me know :-)
>
> > > Well, maybe I just need too basic details on this, but I'd really
> > > appreciate if there's someone who can help me with this :-)
>
> > > Thanks in advance,
>
> > > Arne


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to