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