Skip to content

Commit 140e0da

Browse files
committed
Pass request to django's authenticate
1 parent ad88ffb commit 140e0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rest_framework_jwt/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def validate(self, data):
8282
'password': data.get('password')
8383
}
8484

85-
user = authenticate(**credentials)
85+
user = authenticate(self.context['request'], **credentials)
8686

8787
if not user:
8888
msg = _('Unable to log in with provided credentials.')

0 commit comments

Comments
 (0)