In a nutshell, how to get a User instance by email and password like Django does, and log he/she in?
response.headers =
request.environ['repoze.who.plugins']['main_identifier'].remember(request.environ,
{'repoze.who.userid':user_name})
The user_name variable is the User.user_name field in a standard TG2
configuration.
For a more structured function to use take a look at
http://stackoverflow.com/questions/4576486/turbogears-change-user-via-function-calls/6636220#6636220
> --
> 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/-/HK0csGomKugJ.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.