<?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: Tutorial: Reset passwords with Authlogic the RESTful way</title>
	<atom:link href="http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/</link>
	<description>Ben Johnson's thoughts and programming techniques</description>
	<lastBuildDate>Tue, 26 Jan 2010 22:32:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: poleardillils</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-236</link>
		<dc:creator>poleardillils</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-236</guid>
		<description>nice information.. good to read..
Good Luck.</description>
		<content:encoded><![CDATA[<p>nice information.. good to read..<br />
Good Luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lakshan</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-270</link>
		<dc:creator>Lakshan</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-270</guid>
		<description>Nice tutorial Ben!

Currently I&#039;m converting my existing restful-authentication based apps to Authlogic. In this process, I was able to use forgot_password (git://github.com/greenisus/forgot_password) plugin with Authlogic without any issues. This plugin also approaches the problem in a similar fashion you have done and it&#039;s too flexible enough to customize.</description>
		<content:encoded><![CDATA[<p>Nice tutorial Ben!</p>
<p>Currently I&#8217;m converting my existing restful-authentication based apps to Authlogic. In this process, I was able to use forgot_password (git://github.com/greenisus/forgot_password) plugin with Authlogic without any issues. This plugin also approaches the problem in a similar fashion you have done and it&#8217;s too flexible enough to customize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-271</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-271</guid>
		<description>Ben,
Authlogic is improving so nicely. Just let me iterate my appreciation for your work.

Feature Request: now that you have added the password_reset_token, I was thinking how the same facility would work well for verification of new accounts. Of course, Authlogic doesn&#039;t need to facilitate all the account status changing, but the same password_reset_token could easily be used for validation as well. The only thing I see that would be required is to change the default expiry time from 10.minutes to something optionable. Just add the option of specifying the expiry time to find_using_password_reset_token(:expires_in =&gt; 20.minutes). 10 minutes is probably OK, but I like to leave users just a little more time.

Thoughts?</description>
		<content:encoded><![CDATA[<p>Ben,<br />
Authlogic is improving so nicely. Just let me iterate my appreciation for your work.</p>
<p>Feature Request: now that you have added the password_reset_token, I was thinking how the same facility would work well for verification of new accounts. Of course, Authlogic doesn&#8217;t need to facilitate all the account status changing, but the same password_reset_token could easily be used for validation as well. The only thing I see that would be required is to change the default expiry time from 10.minutes to something optionable. Just add the option of specifying the expiry time to find_using_password_reset_token(:expires_in =&gt; 20.minutes). 10 minutes is probably OK, but I like to leave users just a little more time.</p>
<p>Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-272</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-272</guid>
		<description>Hey Karl, I think thats a good idea. To be honest, you could use the password_reset_token for activation as well. Both tokens really are the same thing, so maybe they should share the same field? I&#039;m thinking about renaming this to something a little more generic like &quot;perishable_table&quot;? I&#039;m not sure yet, but I&#039;ll give it some more thought.

Also, the expiration time is configurable. I provided this option for acts_as_authentic:

* &lt;tt&gt;password_reset_token_valid_for&lt;/tt&gt; - default: 10.minutes,
  Authlogic gives you a sepcial method for finding records by the password reset token (see Authlogic::ORMAdapters::ActiveRecordAdapter::ActcsAsAuthentic::PasswordReset). In this method
  it checks for the age of the token. If the token is old than whatever you specify here, a user will NOT be returned. This way the tokens are perishable, thus making this system much
  more secure.</description>
		<content:encoded><![CDATA[<p>Hey Karl, I think thats a good idea. To be honest, you could use the password_reset_token for activation as well. Both tokens really are the same thing, so maybe they should share the same field? I&#8217;m thinking about renaming this to something a little more generic like &quot;perishable_table&quot;? I&#8217;m not sure yet, but I&#8217;ll give it some more thought.</p>
<p>Also, the expiration time is configurable. I provided this option for acts_as_authentic:</p>
<p>* &lt;tt&gt;password_reset_token_valid_for&lt;/tt&gt; &#8211; default: 10.minutes,<br />
  Authlogic gives you a sepcial method for finding records by the password reset token (see Authlogic::ORMAdapters::ActiveRecordAdapter::ActcsAsAuthentic::PasswordReset). In this method<br />
  it checks for the age of the token. If the token is old than whatever you specify here, a user will NOT be returned. This way the tokens are perishable, thus making this system much<br />
  more secure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik N</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-273</link>
		<dc:creator>Henrik N</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-273</guid>
		<description>Instead of &quot;# You do not need to add this method, I put it here so you know there is a view for this.&quot; I would recommend &quot;render&quot;. Short, sweet and explicit.

Also, it strikes me as a little weird that the Authlogic login is nice and RESTful, where this flow is not. How about a PasswordResetsController where new/create is for requesting the reset and edit/update is for actually resetting? Just how well this maps to REST can be discussed, but either way I think keeping it in its own controller makes things easier.</description>
		<content:encoded><![CDATA[<p>Instead of &quot;# You do not need to add this method, I put it here so you know there is a view for this.&quot; I would recommend &quot;render&quot;. Short, sweet and explicit.</p>
<p>Also, it strikes me as a little weird that the Authlogic login is nice and RESTful, where this flow is not. How about a PasswordResetsController where new/create is for requesting the reset and edit/update is for actually resetting? Just how well this maps to REST can be discussed, but either way I think keeping it in its own controller makes things easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-274</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-274</guid>
		<description>Hi Henrik, you make some good points. I actually started off the tutorial with a separate passwords controller. I&#039;m gonna play around with that again and see if it makes the most sense. I just released a new version of Authlogic, so I was going to update this tutorial anyways. Maybe I&#039;ll modify it to do that.</description>
		<content:encoded><![CDATA[<p>Hi Henrik, you make some good points. I actually started off the tutorial with a separate passwords controller. I&#8217;m gonna play around with that again and see if it makes the most sense. I just released a new version of Authlogic, so I was going to update this tutorial anyways. Maybe I&#8217;ll modify it to do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-275</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-275</guid>
		<description>@Henrik:
re:&quot;How about a PasswordResetsController&quot;

I was thinking the exact same thing. Very RESTful, sir. Maybe it should be a nested resource under Account/User?

But this really has nothing to do with Authlogic itself.</description>
		<content:encoded><![CDATA[<p>@Henrik:<br />
re:&quot;How about a PasswordResetsController&quot;</p>
<p>I was thinking the exact same thing. Very RESTful, sir. Maybe it should be a nested resource under Account/User?</p>
<p>But this really has nothing to do with Authlogic itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-276</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-276</guid>
		<description>Alright, I updated the tutorial, both of you are right, this is a much cleaner approach.</description>
		<content:encoded><![CDATA[<p>Alright, I updated the tutorial, both of you are right, this is a much cleaner approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-277</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-277</guid>
		<description>Karl, that&#039;s exactly what I&#039;m thinking. Probably a singular (rather than plural) resource directly below each user. Then requesting a password reset is basically sending an empty POST request to /users/karl/password_reset - as you said, it&#039;s independent of Authlogic (one reason why I&#039;m loving Authlogic already!) but I think that&#039;s how I&#039;ll want to implement it.</description>
		<content:encoded><![CDATA[<p>Karl, that&#8217;s exactly what I&#8217;m thinking. Probably a singular (rather than plural) resource directly below each user. Then requesting a password reset is basically sending an empty POST request to /users/karl/password_reset &#8211; as you said, it&#8217;s independent of Authlogic (one reason why I&#8217;m loving Authlogic already!) but I think that&#8217;s how I&#8217;ll want to implement it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/comment-page-1/#comment-278</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Sun, 16 Nov 2008 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">0/2009/03/23/tutorial-reset-passwords-with-authlogic#comment-278</guid>
		<description>Hey Charlie,

That should be a very easy change. It&#039;s really up to you, go for it if you like that method better. Either way is fine.</description>
		<content:encoded><![CDATA[<p>Hey Charlie,</p>
<p>That should be a very easy change. It&#8217;s really up to you, go for it if you like that method better. Either way is fine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
