18 lines
832 B
Diff
18 lines
832 B
Diff
diff -rupN auth_oauth_multi_token/models/res_users.py auth_oauth_multi_token.patch/models/res_users.py
|
|
--- auth_oauth_multi_token/models/res_users.py 2021-04-15 03:35:47.362795561 +0000
|
|
+++ auth_oauth_multi_token.patch/models/res_users.py 2021-04-20 22:54:51.992899568 +0000
|
|
@@ -69,10 +69,10 @@ class ResUsers(models.Model):
|
|
res.oauth_master_uuid = self._generate_oauth_master_uuid()
|
|
|
|
@api.model
|
|
- def _check_credentials(self, password):
|
|
+ def _check_credentials(self, password, env):
|
|
"""Override to check credentials against multi tokens."""
|
|
try:
|
|
- return super()._check_credentials(password)
|
|
+ return super()._check_credentials(password, env)
|
|
except exceptions.AccessDenied:
|
|
res = self.multi_token_model.sudo().search(
|
|
[
|
|
|