Christopher Arndt <[EMAIL PROTECTED]> writes: > my customer wants that usernames and passwords are checked > case-insentively on login. I can't store the username in all lowercase, > because I use email addresses as usernames (I just store emails twice in > user_name and email_address) and, to my knowledge, the part before the @ > sign in email addresses is case-sensitive.
Well... You're not emailing to the "user_name" but to the "email_address" so lower casing the former wouldn't cause any harm to the latter. > I wouldn't know where to lowercase incoming usernames and password > anyway. Do I do this in the login method? Or do I have to plug in a > custom identity provider? You should plug some code to lowercase usernames (or uppercase) before comparing with a lowercased (uppercased) version stored at the db... -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

