Hi Sean,
thanks for pasting it, but there's only one single issue that doesn't
match your config at all: You're using the Acl component... do I
_have_ to use Acl too? I though I could use it without Acl only using
the table data and such, so I did not work with Acl at all.
I did a bit debugging though and found that my users_controller->login
function doesnt have $this->Auth->user() available.
if ($this->Auth->user()) { ... } else { debug("no auth->user :-(") }
gives me the debug message, so for some reason I don't have access to
this what seems to be the point. Did I forget something?
Best regards
Arne
On Nov 9, 4:25 pm, SeanW <[EMAIL PROTECTED]> wrote:
> On Nov 8, 6:33 pm, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote:
>
> > But when submitting the form, it redirects me back to the login, pre-
> > filling the password field with 32 chars (assume it's the md5 hash,
> > but why?).
>
> That's probably because the authentication is failing, or not being
> checked.
>
> Remember I don't use username and password, I use email and password.
> So make sure that in app_controller.php where I have
>
> $this->Auth->fields = array('username' => 'email', 'password' =>
> 'password');
>
> you have
>
> $this->Auth->fields = array('username' => 'username', 'password' =>
> 'password');
>
> Did you also null out your salt in config.php?
>
> I posted my code (login.ctp and users_controller.php)
> tohttp://pastebin.ca/767192
>
> Sean
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---