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)
new_user = {
'name': name,
'login': login,
+ # 'password': oauth_uid,
'user_email': login,
'oauth_provider': 'Google',
'oauth_uid': oauth_uid,
finally:
cr.close()
-
+res_users()
#