Skip to content

Commit

Permalink
Pass Request from JSONWebTokenSerializer to django.contrib.auth.authe…
Browse files Browse the repository at this point in the history
…nticate

Closes jpadilla#387
  • Loading branch information
Jim Simon committed Dec 21, 2017
1 parent 0a0bd40 commit 68dea0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_jwt/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def validate(self, attrs):
}

if all(credentials.values()):
user = authenticate(**credentials)
user = authenticate(self.context.get('request', None), **credentials)

if user:
if not user.is_active:
Expand Down

0 comments on commit 68dea0c

Please sign in to comment.