diff options
| author | Olivier Dony <odo@openerp.com> | 2013-02-15 11:58:20 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2013-02-15 11:58:20 +0100 |
| commit | 2ffa8c7979b469312cb8c0ceb408300a9d4069f0 (patch) | |
| tree | 587ece727cc0296782622bd7f5a328722fae2878 /addons | |
| parent | 2d8645a7228991599675f453d13573e6dfbb1cb1 (diff) | |
[FIX] auth_oauth_signup: allow non-numeric OAuth User ID, for e.g. compatibility with Google OAuth
lp bug: https://launchpad.net/bugs/1118151 fixed
bzr revid: odo@openerp.com-20130215105820-ua7pwdrf78dkdyk8
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/auth_oauth_signup/res_users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/auth_oauth_signup/res_users.py b/addons/auth_oauth_signup/res_users.py index 495331124b1..5eebc02fe04 100644 --- a/addons/auth_oauth_signup/res_users.py +++ b/addons/auth_oauth_signup/res_users.py @@ -41,7 +41,7 @@ class res_users(osv.Model): state = simplejson.loads(params['state']) token = state.get('t') oauth_uid = validation['user_id'] - email = validation.get('email', 'provider_%d_user_%d' % (provider, oauth_uid)) + email = validation.get('email', 'provider_%s_user_%s' % (provider, oauth_uid)) name = validation.get('name', email) values = { 'name': name, |
