Did you create any other customization for login/logout together with
the code posted above? If yes, then post the code here so that we can
see.
For the beforeFilter() function, I think you no longer need to check
for the referer and for isset(($this->Auth) (Assuming Auth is already
included in var $components). You can directly assign array
('controller' => 'dashboard', 'action' => 'index'); to $this->Auth-
>loginRedirect.
If you're going to use $this->Auth->authorize = 'controller'; (I see
it's commented out), then you will need to implement the isAuthorized
() function for app_controller.php as well.
Can you try putting $this->Auth->allow('*'); in beforeFilter(), then
check if it redirects to the dashboard index when you login.
On Dec 8, 1:56 pm, gearvOsh <[EMAIL PROTECTED]> wrote:
> Actually nevermind. The $this->data had to be under User, not Form.
> Now the login is submitting and the query is being fired... BUT now
> everytime I hit login the password field goes empty and it never
> works.
>
> On Dec 7, 9:50 pm, gearvOsh <[EMAIL PROTECTED]> wrote:
>
> > I tried removing the $this->Auth->login() and now it doesnt do
> > anything. No query is fired.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---