summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/models/res_users.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/auth_oauth/models/res_users.py')
-rw-r--r--addons/auth_oauth/models/res_users.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/auth_oauth/models/res_users.py b/addons/auth_oauth/models/res_users.py
index 0e54a23b0aa..2ee46b6b38c 100644
--- a/addons/auth_oauth/models/res_users.py
+++ b/addons/auth_oauth/models/res_users.py
@@ -109,9 +109,9 @@ class ResUsers(models.Model):
# return user credentials
return (self.env.cr.dbname, login, access_token)
- def _check_credentials(self, password):
+ def _check_credentials(self, password, env):
try:
- return super(ResUsers, self)._check_credentials(password)
+ return super(ResUsers, self)._check_credentials(password, env)
except AccessDenied:
res = self.sudo().search([('id', '=', self.env.uid), ('oauth_access_token', '=', password)])
if not res: