Monday, April 27, 2009

Re: cakephp auth component password field always empty why ??

Well done Brian!!
I saw it, but assumed that the missing action would default to
"login", so I didn't look further!
Good detective work! Enjoy,
John

On Apr 27, 6:38 pm, brian <bally.z...@gmail.com> wrote:
> $this->Auth->loginAction = array('controller' => 'members');
>
> There's no action in that array. I suspect that Cake is treating your
> register action as a login attempt. Looking at AuthComponent ...
>
> Line 294:
> $loginAction = Router::normalize($this->loginAction);
>
> Router::normalize() will grab the missing action from $params['action'].
>
> A few lines down is a comparison between that and the current URL. If
> they match, a login check happens. That's why you see the select query
> being made. Because that comes up empty, login fails and ...
>
> Line 334:
> $controller->data[$this->userModel][$this->fields['password']] = null;
>
> On Mon, Apr 27, 2009 at 7:55 AM, Malcolm Krugger
>
> <chennaiprogram...@gmail.com> wrote:
>
> > So has anyone experienced the
>
> > cakephp auth component password field always empty problem at all ??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: