Skip to content

Commit

Permalink
Merge b1aa46f into ef7909b
Browse files Browse the repository at this point in the history
  • Loading branch information
knaperek committed Oct 12, 2017
2 parents ef7909b + b1aa46f commit 23138ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2_provider/oauth2_validators.py
Expand Up @@ -514,7 +514,7 @@ def validate_user(self, username, password, client, request, *args, **kwargs):
"""
Check username and password correspond to a valid and active User
"""
u = authenticate(username=username, password=password)
u = authenticate(request=request, username=username, password=password)
if u is not None and u.is_active:
request.user = u
return True
Expand Down

0 comments on commit 23138ad

Please sign in to comment.