It depends on whether you only need the last (current) IP or the past IPs.
In the former case I would customize auth_table and add a field Field('last_ip') and in model auth.settings.login_onaccept=lambda form: \ db(db.auth_user.id==auth.user.id).update(last_ip=request.client) On Jul 9, 9:44 am, Kuba Kucharski <kuba.kuchar...@gmail.com> wrote: > I would like to have additional information about current ip of a > logged-in-user in my auth user table , I know custom auth_user_table > stuff but the question is should I query > > few last rows of db.auth_event > > where > > db.auth_event.description == "User" + auth_user.id "Logged-in" > > and than update user table or,, is there a simpler solution ? > > need I customize "login" action? > > thanks in advance > -- > Kuba --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---