Christoph Zwerschke <[EMAIL PROTECTED]> writes: > Jorge Godoy wrote: >>> 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... > > At least with SQLAlchemy you can do this very conveniently on the model > level, e.g. by defining a case insensitive datatype (see > http://www.sqlalchemy.org/docs/types.myt). You can change this in the > user table in your model.py file.
With SQL Object you can do the same with getters and setters... I haven't thought about this approach :-) Thanks for your reminder. -- 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 -~----------~----~----~----~------~----~------~--~---

