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 <[email protected]> wrote:
> anyone?
>
> On Oct 11, 5:18 pm, Francisco Costa <[email protected]> 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?