Removes obsolete patch included in oauth-multitoken

This commit is contained in:
Jorge Enrique Gómez Gómez 2023-05-25 16:19:29 -05:00
parent c7fa1bbe65
commit ff136e371f
2 changed files with 0 additions and 20 deletions

View File

@ -105,10 +105,6 @@ pt_community ()
OPTIONS="--directory=$DEST --strip=1" OPTIONS="--directory=$DEST --strip=1"
patch $OPTIONS < patches/20210821_base-location_no-zip-from-city.patch patch $OPTIONS < patches/20210821_base-location_no-zip-from-city.patch
DEST=$DESTDIR/community/auth_oauth_multi_token/
OPTIONS="--directory=$DEST --strip=1"
patch $OPTIONS < patches/20210420_auth-oauth-multi-token_error-in-login.patch
DEST=$DESTDIR/community/account_invoice_force_number/ DEST=$DESTDIR/community/account_invoice_force_number/
OPTIONS="--directory=$DEST --strip=2" OPTIONS="--directory=$DEST --strip=2"
patch $OPTIONS < patches/20211216_account-invoice-force-number_post-instead-of-action.patch patch $OPTIONS < patches/20211216_account-invoice-force-number_post-instead-of-action.patch

View File

@ -1,16 +0,0 @@
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-05-31 18:39:08.015127916 -0500
+++ auth_oauth_multi_token.patch/models/res_users.py 2021-05-31 20:37:17.138888645 -0500
@@ -66,10 +66,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(
[("user_id", "=", self.env.uid), ("oauth_access_token", "=", password)]