mirror of
https://github.com/nikdoof/django-testauth.git
synced 2025-12-19 12:49:26 +00:00
Fixes Bug #197, updates API endpoint to work with the new Auth API
This commit is contained in:
2
auth.py
2
auth.py
@@ -17,7 +17,7 @@ class DredditAuthBackend:
|
||||
|
||||
if username and password:
|
||||
# Call the webservice
|
||||
api_url = 'https://auth.pleaseignore.com/api/login/'
|
||||
api_url = 'https://auth.pleaseignore.com/api/1.0/login/'
|
||||
params = { 'user': username, 'pass': sha1(password).hexdigest() }
|
||||
try:
|
||||
raw = urllib2.urlopen('%s?%s' % (api_url, urllib.urlencode(params)))
|
||||
|
||||
Reference in New Issue
Block a user