Comment #5 on issue 180 by Jim.mixtake: username is case sensitive
http://code.google.com/p/django-hotclub/issues/detail?id=180

just put the username__iexact  line in a try block and catch the django  
error like so:

try:
     attemptUser =  
User.objects.get(username__iexact=self.cleaned_data["username"]
     cleanUsername = attemptUser.username
except User.DoesNotExist:
     # if it's not a real username, just let the form return as expected
     cleanUsername = self.cleaned_data["username"]

user = authenticate(username=cleanUsername,  
password=self.cleaned_data["password"])


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to