diff options
| author | Olivier Dony <odo@openerp.com> | 2013-02-12 17:29:20 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2013-02-12 17:29:20 +0100 |
| commit | 6a88cc0f7b8a7dcc99aaae62135e45240ccddad0 (patch) | |
| tree | 94ca10577a227de096f0f6b7d7db66671216e396 | |
| parent | 4cb98ebf462bdb4d17559b9609d4d8b1b23e5866 (diff) | |
[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
| -rw-r--r-- | addons/auth_oauth_signup/res_users.py | 2 |
1 files changed, 2 insertions, 0 deletions
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'] |
