<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Login on behalf of a user in Django</title>
	<atom:link href="http://thermopylae.net/blog/2009/02/26/login-on-behalf-ofa-user-in-django/feed/" rel="self" type="application/rss+xml" />
	<link>http://thermopylae.net/blog/2009/02/26/login-on-behalf-ofa-user-in-django/</link>
	<description>Do I know what a rhetorical question is?</description>
	<lastBuildDate>Fri, 26 Mar 2010 16:40:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: David Thompson</title>
		<link>http://thermopylae.net/blog/2009/02/26/login-on-behalf-ofa-user-in-django/comment-page-1/#comment-354</link>
		<dc:creator>David Thompson</dc:creator>
		<pubDate>Fri, 26 Mar 2010 16:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://thermopylae.net/blog/?p=107#comment-354</guid>
		<description>Another nice way of doing it is to call authenticate first:

from django.contrib.auth import login, authenticate

# auto login new registered user
username = request.POST[&#039;username&#039;]
password = request.POST[&#039;password1&#039;]
user = authenticate(username=username, password=password)
login(request, user)</description>
		<content:encoded><![CDATA[<p>Another nice way of doing it is to call authenticate first:</p>
<p>from django.contrib.auth import login, authenticate</p>
<p># auto login new registered user<br />
username = request.POST['username']<br />
password = request.POST['password1']<br />
user = authenticate(username=username, password=password)<br />
login(request, user)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niklas</title>
		<link>http://thermopylae.net/blog/2009/02/26/login-on-behalf-ofa-user-in-django/comment-page-1/#comment-344</link>
		<dc:creator>Niklas</dc:creator>
		<pubDate>Tue, 01 Sep 2009 13:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://thermopylae.net/blog/?p=107#comment-344</guid>
		<description>You saved my life! Thank you, you&#039;r a god send.</description>
		<content:encoded><![CDATA[<p>You saved my life! Thank you, you&#8217;r a god send.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
