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.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/auth_oauth/models/res_users.py b/addons/auth_oauth/models/res_users.py
index 3657885c3ac..0e54a23b0aa 100644
--- a/addons/auth_oauth/models/res_users.py
+++ b/addons/auth_oauth/models/res_users.py
@@ -109,10 +109,9 @@ class ResUsers(models.Model):
# return user credentials
return (self.env.cr.dbname, login, access_token)
- @api.model
- def check_credentials(self, password):
+ def _check_credentials(self, password):
try:
- return super(ResUsers, self).check_credentials(password)
+ return super(ResUsers, self)._check_credentials(password)
except AccessDenied:
res = self.sudo().search([('id', '=', self.env.uid), ('oauth_access_token', '=', password)])
if not res: