<?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: Django IA: Auth Password Reset</title>
	<atom:link href="http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/feed/" rel="self" type="application/rss+xml" />
	<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
	<description>Weotta be Hacking</description>
	<lastBuildDate>Thu, 19 Apr 2012 12:53:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
		<item>
		<title>By: Jacob Perkins</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-605</link>
		<dc:creator>Jacob Perkins</dc:creator>
		<pubDate>Mon, 19 Apr 2010 20:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-605</guid>
		<description>Yes, the email field is optional by default, but I usually create custom form to make it required. Otherwise the whole password reset thing won&#039;t work.</description>
		<content:encoded><![CDATA[<p>Yes, the email field is optional by default, but I usually create custom form to make it required. Otherwise the whole password reset thing won&#39;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S Kujur</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-604</link>
		<dc:creator>S Kujur</dc:creator>
		<pubDate>Mon, 19 Apr 2010 13:35:08 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-604</guid>
		<description>All is fine and dandy. But by default, the email is not required for a user to create his/her account, is that not so?</description>
		<content:encoded><![CDATA[<p>All is fine and dandy. But by default, the email is not required for a user to create his/her account, is that not so?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Perkins</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-554</link>
		<dc:creator>Jacob Perkins</dc:creator>
		<pubDate>Mon, 19 Apr 2010 13:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-554</guid>
		<description>Yes, the email field is optional by default, but I usually create custom form to make it required. Otherwise the whole password reset thing won&#039;t work.</description>
		<content:encoded><![CDATA[<p>Yes, the email field is optional by default, but I usually create custom form to make it required. Otherwise the whole password reset thing won&#39;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: S Kujur</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-553</link>
		<dc:creator>S Kujur</dc:creator>
		<pubDate>Mon, 19 Apr 2010 06:35:08 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-553</guid>
		<description>All is fine and dandy. But by default, the email is not required for a user to create his/her account, is that not so?</description>
		<content:encoded><![CDATA[<p>All is fine and dandy. But by default, the email is not required for a user to create his/her account, is that not so?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-75</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Sun, 20 Sep 2009 16:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-75</guid>
		<description>Thanks Felix, I do something very similar to do an automatic login after password reset. But I forgot to set the last_login and user message; I&#039;ll have to add that to my code :)</description>
		<content:encoded><![CDATA[<p>Thanks Felix, I do something very similar to do an automatic login after password reset. But I forgot to set the last_login and user message; I&#8217;ll have to add that to my code <img src='http://streamhacker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Perkins</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-691</link>
		<dc:creator>Jacob Perkins</dc:creator>
		<pubDate>Sun, 20 Sep 2009 16:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-691</guid>
		<description>Thanks Felix, I do something very similar to do an automatic login after password reset. But I forgot to set the last_login and user message; I&#039;ll have to add that to my code :)</description>
		<content:encoded><![CDATA[<p>Thanks Felix, I do something very similar to do an automatic login after password reset. But I forgot to set the last_login and user message; I&#8217;ll have to add that to my code <img src='http://streamhacker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felix</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-74</link>
		<dc:creator>felix</dc:creator>
		<pubDate>Sun, 20 Sep 2009 11:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-74</guid>
		<description>also this is a good idea after logging the account in:

    account.last_login = datetime.datetime.now()
    account.save()
    account.message_set.create(message=&#039;Your password has been set. Welcome to %s&#039; % settings.SITE_NAME)</description>
		<content:encoded><![CDATA[<p>also this is a good idea after logging the account in:</p>
<p>    account.last_login = datetime.datetime.now()<br />
    account.save()<br />
    account.message_set.create(message=&#8217;Your password has been set. Welcome to %s&#8217; % settings.SITE_NAME)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felix</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-690</link>
		<dc:creator>felix</dc:creator>
		<pubDate>Sun, 20 Sep 2009 11:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-690</guid>
		<description>also this is a good idea after logging the account in:

    account.last_login = datetime.datetime.now()
    account.save()
    account.message_set.create(message=&#039;Your password has been set. Welcome to %s&#039; % settings.SITE_NAME)</description>
		<content:encoded><![CDATA[<p>also this is a good idea after logging the account in:</p>
<p>    account.last_login = datetime.datetime.now()<br />
    account.save()<br />
    account.message_set.create(message=&#8217;Your password has been set. Welcome to %s&#8217; % settings.SITE_NAME)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felix</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-73</link>
		<dc:creator>felix</dc:creator>
		<pubDate>Sun, 20 Sep 2009 11:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-73</guid>
		<description>you don&#039;t need to write your own backend to change the reset/login behavior.  you just have to use the URL config to direct to your own view

    url(r&#039;^reset/(?P[0-9A-Za-z]+)-(?P.+)/$&#039;, 
        &#039;accountz.views.password_reset_confirm&#039;,
        name=&#039;password_reset_confirm&#039;),


and then use this to log them in:

from django.contrib import auth

def login_user(user,request):
    &quot;&quot;&quot; not a view, a helper &quot;&quot;&quot;
    
    # whatever my current backend is
    bs = auth.get_backends()
    backend = bs[0] # the first one, usually the EmailBackend
    user.backend = &quot;%s.%s&quot; % (backend.__module__, backend.__class__.__name__)

    auth.login(request,user)</description>
		<content:encoded><![CDATA[<p>you don&#8217;t need to write your own backend to change the reset/login behavior.  you just have to use the URL config to direct to your own view</p>
<p>    url(r&#8217;^reset/(?P[0-9A-Za-z]+)-(?P.+)/$&#8217;,<br />
        &#8216;accountz.views.password_reset_confirm&#8217;,<br />
        name=&#8217;password_reset_confirm&#8217;),</p>
<p>and then use this to log them in:</p>
<p>from django.contrib import auth</p>
<p>def login_user(user,request):<br />
    &#8220;&#8221;" not a view, a helper &#8220;&#8221;"</p>
<p>    # whatever my current backend is<br />
    bs = auth.get_backends()<br />
    backend = bs[0] # the first one, usually the EmailBackend<br />
    user.backend = &#8220;%s.%s&#8221; % (backend.__module__, backend.__class__.__name__)</p>
<p>    auth.login(request,user)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felix</title>
		<link>http://streamhacker.com/2009/09/19/django-ia-auth-password-reset/comment-page-1/#comment-689</link>
		<dc:creator>felix</dc:creator>
		<pubDate>Sun, 20 Sep 2009 11:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://streamhacker.com/?p=607#comment-689</guid>
		<description>you don&#039;t need to write your own backend to change the reset/login behavior.  you just have to use the URL config to direct to your own view

    url(r&#039;^reset/(?P[0-9A-Za-z]+)-(?P.+)/$&#039;, 
        &#039;accountz.views.password_reset_confirm&#039;,
        name=&#039;password_reset_confirm&#039;),


and then use this to log them in:

from django.contrib import auth

def login_user(user,request):
    &quot;&quot;&quot; not a view, a helper &quot;&quot;&quot;
    
    # whatever my current backend is
    bs = auth.get_backends()
    backend = bs[0] # the first one, usually the EmailBackend
    user.backend = &quot;%s.%s&quot; % (backend.__module__, backend.__class__.__name__)

    auth.login(request,user)</description>
		<content:encoded><![CDATA[<p>you don&#8217;t need to write your own backend to change the reset/login behavior.  you just have to use the URL config to direct to your own view</p>
<p>    url(r&#8217;^reset/(?P[0-9A-Za-z]+)-(?P.+)/$&#8217;,<br />
        &#8216;accountz.views.password_reset_confirm&#8217;,<br />
        name=&#8217;password_reset_confirm&#8217;),</p>
<p>and then use this to log them in:</p>
<p>from django.contrib import auth</p>
<p>def login_user(user,request):<br />
    &#8220;&#8221;" not a view, a helper &#8220;&#8221;"</p>
<p>    # whatever my current backend is<br />
    bs = auth.get_backends()<br />
    backend = bs[0] # the first one, usually the EmailBackend<br />
    user.backend = &#8220;%s.%s&#8221; % (backend.__module__, backend.__class__.__name__)</p>
<p>    auth.login(request,user)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

