[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:
parent
2d8645a722
commit
2ffa8c7979
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue