diff --git a/rest_framework_jwt/serializers.py b/rest_framework_jwt/serializers.py index 12b10a44..0ee5aa6c 100644 --- a/rest_framework_jwt/serializers.py +++ b/rest_framework_jwt/serializers.py @@ -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: