Added requirement for full api key

This commit is contained in:
Raynaldo Rivera
2014-10-19 11:16:55 -07:00
parent 1ee3fbb59f
commit 0ac78b25d8
3 changed files with 20 additions and 5 deletions

View File

@@ -15,4 +15,8 @@ class UpdateKeyForm(forms.Form):
self.cleaned_data['api_key']):
raise forms.ValidationError(u'API not of type account')
if not EveApiManager.check_api_is_full(self.cleaned_data['api_id'],
self.cleaned_data['api_key']):
raise forms.ValidationError(u'API supplied is not a full api key')
return self.cleaned_data