How do I request a feature from Django? This one would be simple. I'd like the authenticate method to take an extra boolean argument which would determine if it should treat the username as case sensitive. Default would be True, since it treats it that way already.
I understand that passwords would have to be case sensitive, because they are hashed, but usernames should not have to be case sensitive. It is not appealing to me to convert all the usernames in my db to lowercase and then lowercase the input to authenticate(). Is there a way to do this already? My way seems like it would be easier to add the check into authenticate() instead of the following workaround. query the db with User.objects.get(username__iexact=unamefrominput) #obviously using a try/except if there is one, take the username of that user and pass it to authenticate() with the password from input. this workaround obviously requires one more query than putting the decision in the authenticate function. Any help on this would be greatly appreciated. I am developing for a server run by someone else, so I don't want to hack django myself as it won't affect the production server. This would be really handy for future issues. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.