I have used tg.controllers.util.auth_force_login(*user_name*) for this and it worked
On Tuesday, May 23, 2017 at 10:43:55 PM UTC+5:30, Raj wrote: > > Hi, > Can we directly call the login_handler method from our app? > Need to get response as shown below: > > resp= login_handler() > > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

