Skip to content

Commit

Permalink
feat: fix authenticate credential method
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Oct 15, 2024
1 parent a0479c8 commit 011948e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chats/apps/accounts/authentication/drf/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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),
Expand Down

0 comments on commit 011948e

Please sign in to comment.