Try this: http://web2pyslices.com/main/slices/take_slice/77
see it in action on www.tenthrow.com cfh On Oct 11, 4:57 pm, firedragon852 <firedragon...@gmail.com> wrote: > I tried both the following methods: > > URL: .../login/facebook > if request.args(0) == 'facebook': > from gluon.contrib.login_methods.oauth20_account import > OAuthAccount > auth.settings.login_form = FacebookAccount(globals()) > > can get redirected to facebook login page, but when it comes back > web2py insists on going to .../login for authentication. > > URL: .../facebook_login => same effect > > On Oct 12, 1:42 am, Francisco Costa <m...@franciscocosta.com> wrote: > > > anyone? > > > On Oct 11, 5:18 pm, Francisco Costa <m...@franciscocosta.com> wrote: > > > > Hello, > > > I'm trying to implement a twitter login using this > > > > auth.settings.login_form=TwitterTest(globals(),CLIENT_ID,CLIENT_SECRET, > > > AUTH_URL, TOKEN_URL, ACCESS_TOKEN_URL) > > > > but when you use auth.settings.login_form you lose regular login > > > > is there a way to have both? > >