Hi,

In merb/merb-auth/setup.rb, do:

Merb::Authentication.after_authentication do |user, request, params|
  user.save # etc ....
  user # must return the user object for the authentication to be successful
end

Alternatively, you could also customize the User.get method .but I don't
know how that works with slices (I'm just using auth-core and auth-more)

- Ahsan / highandwild

On Tue, Dec 23, 2008 at 10:24 AM, epoch <[email protected]> wrote:
>
> I have an last_login_at property in the user class and I want to
> update this attribute in the database after the user login. I'm sure
> merb-auth have hooks that allows me to do this, probably in the
> session controller? I'm just not sure if this is the right place to do
> it. I am using the standard merb-auth slice password.
>
> Thanks.
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to