From 2ffa8c7979b469312cb8c0ceb408300a9d4069f0 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 15 Feb 2013 11:58:20 +0100 Subject: [PATCH] [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 --- addons/auth_oauth_signup/res_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,