I suppose, if Auth->authorize = 'controller', you could put this in your UserController::isAuthorized() method. Just be sure to return true. Alternatively, I guess you could put it in afterFilter() and do this only when the action is login.
Or, you could just add it into the existing login() method, as I did. It's not like this logic will be needed anywhere else. On Tue, Jan 27, 2009 at 4:18 AM, thebeardman <[email protected]> wrote: > > Hello everyone, > > Do you know how I can add a saveField action right after a succesful > login using Auth? > I would like to update the User.last_visit with the current date just > after the user is logged in. Do I have to rewrite the login function > in the users_controller or is there another way? > > Thanks > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
