From 011948e60c32b0efea481a828d150c3b63a475d1 Mon Sep 17 00:00:00 2001 From: helllllllder Date: Tue, 15 Oct 2024 15:01:55 -0300 Subject: [PATCH] feat: fix authenticate credential method --- chats/apps/accounts/authentication/drf/authorization.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chats/apps/accounts/authentication/drf/authorization.py b/chats/apps/accounts/authentication/drf/authorization.py index 1282e883..1221f2b6 100644 --- a/chats/apps/accounts/authentication/drf/authorization.py +++ b/chats/apps/accounts/authentication/drf/authorization.py @@ -68,7 +68,7 @@ def _authenticate_credentials(self, key): def authenticate_credentials(self, key): if not self.cache_token: - return super()._authenticate_credentials(key) + return self._authenticate_credentials(key) redis_connection = get_redis_connection() cache_authorization = redis_connection.get(key) @@ -78,7 +78,7 @@ def authenticate_credentials(self, key): authorization = ProjectAdminDTO(**cache_authorization) return (authorization.user_email, authorization) - auth_instance = super()._authenticate_credentials(key)[1] + auth_instance = self._authenticate_credentials(key)[1] authorization = ProjectAdminDTO( pk=str(auth_instance.pk), project=str(auth_instance.project_id),