From 6a88cc0f7b8a7dcc99aaae62135e45240ccddad0 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 12 Feb 2013 17:29:20 +0100 Subject: [PATCH] [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 --- addons/auth_oauth_signup/res_users.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/auth_oauth_signup/res_users.py b/addons/auth_oauth_signup/res_users.py index 83400f7c008..495331124b1 100644 --- a/addons/auth_oauth_signup/res_users.py +++ b/addons/auth_oauth_signup/res_users.py @@ -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']