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

[FIX] auth_crypt: do not invalidate the whole cache when setting password

parent 6676c3b1
Branches
Tags
No related merge requests found
......@@ -46,7 +46,7 @@ class ResUsers(models.Model):
def _inverse_password(self):
for user in self:
user._set_password(user.password)
self.invalidate_cache()
self.invalidate_cache(['password'])
@api.model
def check_credentials(self, password):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment