Re: [web2py] Re: want to insert the data in database when the user will log-in first time

2012-02-25 Thread Sanjeet Kumar
Thanks Massimo On Fri, Feb 24, 2012 at 9:23 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > How about adding this at the bottom of your model: > > def do_something(form): > auth.settings.login_onaccept = do_something > > On Feb 24, 3:47 am, Sanjeet Kumar wrote: > > I want to i

[web2py] Re: want to insert the data in database when the user will log-in first time

2012-02-24 Thread Anthony
On Friday, February 24, 2012 12:57:50 PM UTC-5, pbreit wrote: > > Is there any way to add captured data or otherwise customize the > auth_event auto-logging? One option might be to add some custom fields to the auth_event table and then dynamically set default values for those fields so when th

[web2py] Re: want to insert the data in database when the user will log-in first time

2012-02-24 Thread pbreit
Is there any way to add captured data or otherwise customize the auth_event auto-logging?

[web2py] Re: want to insert the data in database when the user will log-in first time

2012-02-24 Thread weheh
Not to take away from Massimo's answer, which is obviously the right way to do it, but the thing you're example is trying to do is basically done for you automatically in the auth_event table. On Feb 24, 11:53 pm, Massimo Di Pierro wrote: > How about adding this at the bottom of your model: > > d

[web2py] Re: want to insert the data in database when the user will log-in first time

2012-02-24 Thread Massimo Di Pierro
How about adding this at the bottom of your model: def do_something(form): auth.settings.login_onaccept = do_something On Feb 24, 3:47 am, Sanjeet Kumar wrote: >  I want to insert the data in database when the user will log-in first time > . if the user refresh the index page after login it