Skip to content

Commit

Permalink
Fix issue #636, pass request object to authenticate function. (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
W0126 authored and IvanAnishchuk committed Oct 20, 2019
1 parent e218d38 commit d5e6645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2_provider/oauth2_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,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, username=username, password=password)
if u is not None and u.is_active:
request.user = u
return True
Expand Down

0 comments on commit d5e6645

Please sign in to comment.