Fixes Bug #197, updates API endpoint to work with the new Auth API

This commit is contained in:
NegatedVoid
2011-07-06 12:53:38 +01:00
committed by Andrew Williams
parent 7e29968317
commit 0fa7e31c79

View File

@@ -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)))