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]<javascript:>
> > 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.


Reply via email to