Hi Cfh, I tried to deploy your modules into my web2py app but failed. The error message is:
Traceback (most recent call last): File "/home/zhe/workspace/gaoshi/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/home/zhe/workspace/gaoshi/web2py/applications/init/models/ db.py", line 35, in <module> auth = CustomAuth(globals(), T, db, True) # authentication/ authorization File "applications/init/modules/customAuth.py", line 48, in __init__ table = self.settings.table_user NameError: global name 'IS_NOT_EMPTY' is not defined However, after I added "from gluon.validators import *" in customAuth.py it still showed the same message. Could you help me with that please? Thanks! Cheers, Zhe On Oct 13, 11:06 pm, howesc <how...@umich.edu> wrote: > yes. in the code i postedfacebookand google auto-attach to an > existing account because as part of thelogincredentials those > services provide the user's email address. for twitter, on > tenthrow.com i added an option in the account profile section to add a > twitter account when you are authenticated (so noone can 'steal' your > account using a twitter account and your email address). this does > depend on email address being unique in your system. > > also, if you are logged in via google, twitter, orfacebookand want > to create a tenthrow.com password i allow users to do that from the > account profile pages as well. > > i don't think my account profile pages are included in the posted code > though. if they are useful to people i'll see if i can make them > generic enough to post publicly. > > cfh > > On Oct 13, 5:46 am, selecta <gr...@delarue-berlin.de> wrote: > > > > > > > > > looks great, seen the slice a while ago and wanted to integrate this > > for some time > > > I have a question though: Are you able to attach a facbook/twitter/ > > normallogin... account with an already exising account later on? > > > On Oct 12, 8:44 pm, howesc <how...@umich.edu> wrote: > > > > Try this: > > > >http://web2pyslices.com/main/slices/take_slice/77 > > > > see it in action onwww.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 tofacebookloginpage, but when it comes back > > > > web2py insists on going to .../loginfor 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 twitterloginusing 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 regularlogin > > > > > > > is there a way to have both?