Skip to content
Snippets Groups Projects
Commit 8024a6e3 authored by Raphael Collet's avatar Raphael Collet
Browse files

[IMP] base: don't try authenticating inactive users

parent 1282375d
No related branches found
No related tags found
No related merge requests found
......@@ -669,6 +669,8 @@ class Users(models.Model):
try:
self = api.Environment(cr, uid, {})[cls._name]
with self._assert_can_auth():
if not self.env.user.active:
raise AccessDenied()
self._check_credentials(passwd)
cls.__uid_cache[db][uid] = passwd
finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment