Skip to content

Commit 0d56349

Browse files
committed
Fix refactoring error: uid -> user_id
1 parent e0d72a0 commit 0d56349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework_sso/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def authenticate_credentials(self, payload):
6363

6464
if not SessionToken._meta.abstract:
6565
try:
66-
SessionToken.objects.active().get(pk=payload.get('sid'), uid=payload.get('uid'))
66+
SessionToken.objects.active().get(pk=payload.get('sid'), user_id=payload.get('uid'))
6767
except SessionToken.DoesNotExist:
6868
raise exceptions.AuthenticationFailed(_('Invalid token.'))
6969

0 commit comments

Comments
 (0)