From 0dd635d60376949cfc750f3dff531aca2a1cec64 Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Tue, 14 Aug 2012 15:13:22 +0200 Subject: [PATCH] [FIX] Fixed logged user redirection bzr revid: vta@openerp.com-20120814131322-sww9yuik9jn2tn3p --- addons/auth_oauth/res_users.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/auth_oauth/res_users.py b/addons/auth_oauth/res_users.py index 4cae3bd4880..20771ea4ac6 100644 --- a/addons/auth_oauth/res_users.py +++ b/addons/auth_oauth/res_users.py @@ -52,7 +52,7 @@ class res_users(osv.Model): oauth_uid = validation['user_id'] name = self.auth_oauth_fetch_user_data(cr, uid, access_token)['name'] - r = (cr.dbname, login, access_token) + r = (cr.dbname, login, oauth_uid) res = self.search(cr, uid, [("oauth_uid", "=", oauth_uid)]) _logger.exception(res) @@ -63,6 +63,7 @@ class res_users(osv.Model): new_user = { 'name': name, 'login': login, + # 'password': oauth_uid, 'user_email': login, 'oauth_provider': 'Google', 'oauth_uid': oauth_uid, @@ -94,5 +95,5 @@ class res_users(osv.Model): finally: cr.close() - +res_users() #