mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fix EVE API handler
This commit is contained in:
@@ -97,7 +97,7 @@ class EveAPIHandler(BaseHandler):
|
|||||||
elif request.GET.get('allianceid', None):
|
elif request.GET.get('allianceid', None):
|
||||||
s = EVEAccount.objects.filter(characters__corporation__alliance__id=request.GET['allianceid'])
|
s = EVEAccount.objects.filter(characters__corporation__alliance__id=request.GET['allianceid'])
|
||||||
|
|
||||||
return {'keys': s.values('id', 'user_id', 'api_status', 'api_last_updated')}
|
return {'keys': s.values('api_user_id', 'user_id', 'api_status', 'api_last_updated')}
|
||||||
|
|
||||||
|
|
||||||
class EveAPIProxyHandler(BaseHandler):
|
class EveAPIProxyHandler(BaseHandler):
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class IPBService(BaseService):
|
|||||||
'provide_login': False,
|
'provide_login': False,
|
||||||
'use_auth_username': True,
|
'use_auth_username': True,
|
||||||
'ipb_display_name': "[%(corp)s] - %(name)s",
|
'ipb_display_name': "[%(corp)s] - %(name)s",
|
||||||
'ipb_endpoint': 'http://testboard.aevumdecessus.com/interface/board/index.php',
|
'ipb_endpoint': 'http://ipb.pleaseignore.com/interface/board/index.php',
|
||||||
'ipb_api_key': '51242ecca069b986106f04db1047cfc4',
|
'ipb_api_key': '51242ecca069b986106f04db1047cfc4',
|
||||||
'ipb_api_module': 'ipb' }
|
'ipb_api_module': 'ipb' }
|
||||||
|
|
||||||
@@ -51,7 +51,6 @@ class IPBService(BaseService):
|
|||||||
def check_user(self, username):
|
def check_user(self, username):
|
||||||
""" Check if the username exists """
|
""" Check if the username exists """
|
||||||
ret = self.exec_xmlrpc('fetchMember', search_type='email', search_string=username)
|
ret = self.exec_xmlrpc('fetchMember', search_type='email', search_string=username)
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def disable_user(self, uid):
|
def disable_user(self, uid):
|
||||||
|
|||||||
Reference in New Issue
Block a user