Hi Massimo, It worked like a charm! I changed your code a bit to fit my logic flow, and it worked.
I just dont know how you have created such a great framework - and still have the time to respond to silly questions like mine :D FYI: I was choosing between Django & Web2py, and from the rumors I heard the folks here are helpful... boy that makes a lot of difference! On Thu, Aug 1, 2013 at 5:13 PM, Massimo Di Pierro < [email protected]> wrote: > You do not need to modify the registration for this. Instead you do the > following: > > auth = Auth(db) > auth.settings.extra_fields=[Field('has_paid','boolean',default=False)] > auth.define_tables(....) > if auth.user and not auth.user.has_paid: > db(db.auth_user.id==auth.user.id).update(has_paid = True) #1 > redirect('http://paypal.com/...') > > I am not sure whether you want line #1 there, you may have a different > workflow. > > On Thursday, 1 August 2013 01:58:45 UTC-5, Jake Angulo wrote: > >> On Thu, Aug 1, 2013 at 3:50 PM, Jake Angulo <[email protected]> wrote: >> >>> >>> Where and how should i modify the code? >>> >>> >> >> So basically, I want to use the built-in Auth register() function - but I >> want to modify its behavior: >> >> Auth.register() checks if the new user is successfully registered & >> logged in, and then redirects to the index page. >> >> Instead redirect it to paypal page i defined in controller & views. >> >> Help pls??? >> >> > -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

