PROBLEM SOLVED! I created 2 instances of Auth()
rpxauth = Auth(globals(),store) auth = Auth(globals(),store) and 2 times defined tables auth.define_tables() rpxauth.define_tables(migrate=False) Working now! Thanks 2010/11/11 rochacbruno <[email protected]> > I did it, registration is working, but login form was replaced with > janrain, I am trying to get both login forms. > > Otherwise I will create a custom form and a controller for that. > > Tks > > > Enviado via iPhone > > Em 11/11/2010, às 21:49, Albert Abril <[email protected]> escreveu: > > I guess you should comment second line of the janrain auth in db.py > > As said at > <http://web2py.com/book/default/chapter/08#Integration-with-OpenID,-Facebook> > http://web2py.com/book/default/chapter/08#Integration-with-OpenID,-Facebook > > 1. > 2. > 3. > 4. > 5. > 6. > > 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 > <http://web2py.com/book/default/docstring/request>, > > api_key='...', > domain='...', > > url = " > <http://localhost:8000/%s/default/user/login>http://localhost:8000/%s/default/user/login" > % request <http://web2py.com/book/default/docstring/request>.application) > > The first line imports the new login method, *the second line disables > local registration*, and the third line asks web2py to use the RPX login > method. > > > > On Thu, Nov 11, 2010 at 10:46 PM, Bruno Rocha < <[email protected]> > [email protected]> wrote: > >> Somebody knows how can I use RPX and Normal Login form in the same way >> that web2pyslices are using here: >> <http://web2pyslices.com/main/default/user/login> >> http://web2pyslices.com/main/default/user/login >> >> ??? >> >> >> >> 2010/11/11 Bruno Rocha < <[email protected]>[email protected]> >> >>> It is a commom mistake, so I think is a good idea to include a note in >>> /book and in db.py for scaffold app. >>> >>> >>> >>> 2010/11/11 Albert Abril < <[email protected]>[email protected] >>> > >>> >>> hehe.. it happens to me too. >>>> >>>> you should write only the name of the subdomain. >>>> if you have <http://web2pyapp.rpxnow.com>http://web2pyapp.rpxnow.com , >>>> you have to write only 'web2pyapp' . >>>> I hope this help to others. >>>> >>>> Regards! >>>> >>>> >>>> On Thu, Nov 11, 2010 at 10:02 PM, Bruno Rocha < <[email protected]> >>>> [email protected]> wrote: >>>> >>>>> SOLVED! >>>>> >>>>> It was an error on configuration, domain parameter on RPXAccount expect >>>>> just a domainname, I was providing full URL. >>>>> >>>>> Thanks >>>>> >>>>> 2010/11/11 Bruno Rocha < <[email protected]>[email protected]> >>>>> >>>>> HI, >>>>>> >>>>>> I am trying to activate janrain as the loggin method, and I want to >>>>>> keep the normal login method too. >>>>>> >>>>>> but I am getting this error: "This frame was blocked because it >>>>>> contains insecure content." >>>>>> >>>>>> <http://natalanimal.com.br/init/default/user/login> >>>>>> http://natalanimal.com.br/init/default/user/login >>>>>> >>>>>> Any idea? >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> <http://rochacbruno.com.br>http://rochacbruno.com.br >>>>> >>>> >>>> >>> >>> >>> -- >>> >>> <http://rochacbruno.com.br>http://rochacbruno.com.br >>> >> >> >> >> -- >> >> <http://rochacbruno.com.br>http://rochacbruno.com.br >> > > -- http://rochacbruno.com.br

