So, if I have this straight (sorry, very new to web2py, and python) to
implement this in the Welcome App, I would add the following:

To the db.py model (mostly uncommenting):

from gluon.contrib.login_methods.rpx_account import RPXAccount
auth.settings.actions_disabled = \
    ['register','change_password','request_reset_password']
auth.settings.login_form = RPXAccount(request,
api_key='BLAHBLAHBLAH',
domain='mydomain', url = "http://localhost:8000/%s/default/user/login";
% request.application)
auth.settings.login_next=URL('default/index')

And from there, where would I add the 'if auth.user and not
auth.user.completed_registration...'? To the default controller? db
model?

I'm guessing I would also need to add 'update=True' to the
'completed_registration' field to flag the user as complete once
they've been redirected and submitted full Profile information.

Sorry if I'm being obtuse. Hope I'm making sense. Thanks so much!

On Jul 1, 9:36 am, Massimo Di Pierro <[email protected]>
wrote:
> yes.
>
> 1) add a field 'completed_registration' to the auth_user table and default to 
> False
> 2) then in a model
>
> if auth.user and not auth.user.completed_registration and not 
> URL()==URL('default','user'): redirect('default','user/profile'))
>
> On Jul 1, 2011, at 8:32 AM, DanB wrote:
>
>
>
>
>
>
>
> > fference between a
> > new user and an existing user when using something like Janrain?

Reply via email to