summaryrefslogtreecommitdiff
path: root/addons/auth_ldap/models/res_users.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/auth_ldap/models/res_users.py')
-rw-r--r--addons/auth_ldap/models/res_users.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/auth_ldap/models/res_users.py b/addons/auth_ldap/models/res_users.py
index 83887f802a0..9e783064557 100644
--- a/addons/auth_ldap/models/res_users.py
+++ b/addons/auth_ldap/models/res_users.py
@@ -29,10 +29,9 @@ class Users(models.Model):
break
return user_id
- @api.model
- def check_credentials(self, password):
+ def _check_credentials(self, password):
try:
- super(Users, self).check_credentials(password)
+ super(Users, self)._check_credentials(password)
except AccessDenied:
if self.env.user.active:
Ldap = self.env['res.company.ldap']