Case-insensitive username validation

This commit is contained in:
Trever Fischer
2012-02-25 13:07:29 -05:00
parent cd26a8fba4
commit 921f6c2661

View File

@@ -7,7 +7,7 @@ class WhitelistHandler(AnonymousBaseHandler):
def read(self, request, username=None):
if username:
try:
profile = MinecraftProfile.objects.get(mc_username__exact=username)
profile = MinecraftProfile.objects.get(mc_username__iexact=username)
except Exception, e:
return False
return profile.user.is_active