Added the code for legacy key expiry

This commit is contained in:
2011-10-11 09:27:23 +01:00
parent 2b718b46a7
commit 8314aa5178

View File

@@ -204,7 +204,7 @@ def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=lo
return return
elif error in ['202', '203', '204', '205', '212']: elif error in ['202', '203', '204', '205', '212']:
account.api_status = API_STATUS_AUTH_ERROR account.api_status = API_STATUS_AUTH_ERROR
elif error == '211': elif error in ['211', '223']:
account.api_status = API_STATUS_ACC_EXPIRED account.api_status = API_STATUS_ACC_EXPIRED
else: else:
account.api_status = API_STATUS_OTHER_ERROR account.api_status = API_STATUS_OTHER_ERROR