Some (older?) API keys actually do have lower case characters, and since
it is case sensitive we shouldn't automatically convert all characters
to uppercase.
while not valid_credentials:
if result == gtk.RESPONSE_OK:
uid = uidEntry.get_text()
- # auth() fails if api_key has lower-case characters
- api_key = apiEntry.get_text().upper()
+ api_key = apiEntry.get_text()
try:
validation.uid(uid)
while not valid_credentials:
if result == gtk.RESPONSE_OK:
uid = uidEntry.get_text()
- # auth() fails if api_key has lower-case characters
- api_key = apiEntry.get_text().upper()
-
+ api_key = apiEntry.get_text()
try:
validation.uid(uid)
validation.api_key(api_key)
raise ValidationError("API Key must be %s characters" % KEY_SIZE)
elif not api_key.isalnum():
raise ValidationError("API Key must only contain alphanumeric characters")
- elif not api_key.isupper():
- raise ValidationError("API Key must only contain upper-case characters")
+ # apparently the api key CAN contain lower case characters...
+ #elif not api_key.isupper():
+ # raise ValidationError("API Key must only contain upper-case characters")
return True