repoze.who: perform login programmatically
It took me a while to find out how to perform programmatic login using repoze.who.here is the source code:
rememberer = request.environ['repoze.who.plugins']['cookie']
identity = {'repoze.who.userid': user.username}
response.headerlist = response.headerlist + \
rememberer.remember(request.environ, identity)
Related posts:
Good brief and this post helped me alot in my college assignement. Gratefulness you as your information.
Genial dispatch and this enter helped me alot in my college assignement. Thank you seeking your information.
Great site. A lot of useful information here. I’m sending it to some friends!
发现IE路http://www.faxie6.com,征求友情链接,
呵呵,博客风格不错,订阅了!