[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:
Olivier Dony 2013-02-12 17:29:20 +01:00
parent 4cb98ebf46
commit 6a88cc0f7b
1 changed files with 2 additions and 0 deletions

View File

@ -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']