mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Only check old keytypes if we don't have it already
This commit is contained in:
@@ -167,6 +167,7 @@ def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=lo
|
||||
account.api_key = api_key
|
||||
account.api_status = API_STATUS_OK
|
||||
|
||||
if not account.api_keytype or account.api_keytype == API_KEYTYPE_UNKNOWN:
|
||||
keycheck = CachedDocument.objects.api_query('/account/AccountStatus.xml.aspx', params=auth_params, no_cache=True)
|
||||
keydoc = basic_xml_parse_doc(keycheck)['eveapi']
|
||||
if 'error' in keydoc:
|
||||
|
||||
Reference in New Issue
Block a user