[FIX] auth_oauth_signup: do not attempt to signup users for failed signings coming back from the oauth provider
See also auth_oauth/controllers/main.py:106 bzr revid: odo@openerp.com-20130212162920-5i0swgn4phqitg53
This commit is contained in:
parent
4cb98ebf46
commit
6a88cc0f7b
|
@ -36,6 +36,8 @@ class res_users(osv.Model):
|
|||
login = super(res_users, self)._auth_oauth_signin(cr, uid, provider, validation, params, context=context)
|
||||
|
||||
except openerp.exceptions.AccessDenied:
|
||||
if context and context.get('no_user_creation'):
|
||||
return None
|
||||
state = simplejson.loads(params['state'])
|
||||
token = state.get('t')
|
||||
oauth_uid = validation['user_id']
|
||||
|
|
Loading…
Reference in New Issue