[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
This commit is contained in:
Olivier Dony 2013-02-15 11:58:20 +01:00
parent 2d8645a722
commit 2ffa8c7979
1 changed files with 1 additions and 1 deletions

View File

@ -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,