Hi, I have a little problem with my application's login.
I'm writing a small ERP using TG (1.0), and I would like it to be multi-compagny. When you log in, you have to enter your compagny, your username and you password. User accounts are compagny-dependent, so you can have two User objects (ORM) with the user_name 'foo' (user_name is not unique). My problem is that TG use only 'user'and 'password' to identify someone. And the user_name is used to identify wich user to test password. I would to use compagny too. For instance : - retreive compagny name - get compagny ID - get user_id using compagny_Id + user_name - test password to identify against user_id (and not just user_name only) Is that possible ? Without modifying the framework code.. I tried to write my own identity provider, but it's not suffisant (identity/ __init__.py need to be modified as well, wich isn't acceptable). Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

