I added the this functionality to one of my plugins:

http://github.com/milesj/forum/blob/master/controllers/users_controller.php#L114

On Feb 2, 1:22 pm, Johnny Cupcake <sparklew...@hotmail.com> wrote:
> How can I run code on AuthComponent's successful login _event_?  For
> example, to record the login date/time in the database?
>
> I've tried writing my own login() action in the controller--but by the
> time that function executes, login has already been performed by the
> component--so I don't know whether the login _just occurred_, or it
> happened five minutes ago!
>
> Ideas are greatly appreciated.  Please note, I am NOT asking how to
> determine whether the user logged in _at some point_ in the recent
> past.  I want to map the event itself.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to