I'm not sure why this is considered a mystery. The default login handler is located at MYAPP.controllers.root:RootController.login The default login form is located at MYAPP/templates/login.html The default login form handler (once authentication is completed by repoze.who) is located at MYAPP.controllers.root:RootController.post_login
The means of controlling authentication and authorization are determined by repoze.who and repoze.what, respectively. The documentation for those two packages covers the needed steps on how to customize them. While that documentation can be difficult to understand (I've tried, and it's not easy for me), it is there, and does cover how to customize them. If there's something I've missed, please follow up on this, and I'll try to answer then. On Tue, Nov 20, 2012 at 2:48 AM, zhan zou <[email protected]> wrote: > I got this question the same with you, do anybody know the true source > code location for tg2? > > > On Thursday, July 9, 2009 4:56:13 AM UTC+8, shaw1ea wrote: >> >> Where is the login_handler method located in the source code for tg2? >> I am trying to implement post logon url so that the user is directed >> to an appropriate page after they log in. How do I specify which page >> the user will get directed to based on their username and password. >> The users permissions must be used to determine the proper page. Can >> someone explain this or direct me to an example that show how to do >> this? > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/turbogears/-/8BSWGRaIPcUJ. > 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. > -- Michael J. Pedersen My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen Google Talk: [email protected] -- Twitter: pedersentg -- 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.

