Even if you use GaeGoogleLogin the auth_user table contains both id and email (as provided by gmail). Now if you switch from GaeGoogleLogin to local authentication and email everybody a link to reset the password they will not need to register again and therefore they will retain the current id. I have not tried this but should work.
For example you can make a script that does: auth.messages.reset_password = 'You must reset your password. Click on the link %(link)s to reset your password' for user in db(db.auth_user).select(): auth.email_reset_password(user) Now the issue is, if they cannot access GAE for login, would they receive the email? On Tuesday, 29 July 2014 09:01:07 UTC-5, Marcin Jaworski wrote: > > Hello, > > I have web2py on GAE and it works fine. Unfortunately, clients from China > cannot access Google ServiceLogin lately. I have declared it in db.py > settings like so: auth.settings.login_form=GaeGoogleAccount() after > importing this method from gluon.contrib.login_methods.gae_google_account. > I need some kind of "fix" or rather some kind of enhanced, alternative > solution enabling users from China to be authenticated via available web2py > Auth class despite the fact Google ServiceLogin is not accessible for them > and most of the remaining users should be logged in via Google > ServiceLogin? The problem (?) is that huge parts of application > functionality id based on calling auth.user.id in controllers and views > after auth tables based on declared login method had been generated. Is > there any painless solution not to give up the auth.user.id construct in > function call, but redefining the reference of auth in my situation? > > Thanks in advance, > Marcin > > > BI-Lion Analytics > mobile: +48 728805555 > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.