<?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"
	>
<channel>
	<title>Comments on: My Take on Enhancing restful_authentication Part 1</title>
	<atom:link href="http://morebs.com/2008/02/20/my-take-on-restful_authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://morebs.com/2008/02/20/my-take-on-restful_authentication/</link>
	<description>don't get your fingers caught</description>
	<pubDate>Thu, 20 Nov 2008 21:23:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Travis</title>
		<link>http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-36</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Mon, 22 Sep 2008 03:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-36</guid>
		<description>I cannot thank you enough for this tutorial. It's helped me ramp up a projects authentication scheme from stock to full featured in just a few hours. Rolling all this from scratch would be a huge pain, and I have to say that you've done the rails community a service here. Thanks again!

Travis</description>
		<content:encoded><![CDATA[<p>I cannot thank you enough for this tutorial. It&#8217;s helped me ramp up a projects authentication scheme from stock to full featured in just a few hours. Rolling all this from scratch would be a huge pain, and I have to say that you&#8217;ve done the rails community a service here. Thanks again!</p>
<p>Travis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-29</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Tue, 08 Apr 2008 02:12:16 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-29</guid>
		<description>Thanks for pointing out the typo and missing statement.  I just added update_attribute(:activation_code, nil) inside that method.  Would it be better to change these assignments to the self.attribute = value form and then call save at the end or just use those update_attribute methods?</description>
		<content:encoded><![CDATA[<p>Thanks for pointing out the typo and missing statement.  I just added update_attribute(:activation_code, nil) inside that method.  Would it be better to change these assignments to the self.attribute = value form and then call save at the end or just use those update_attribute methods?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barty</title>
		<link>http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-19</link>
		<dc:creator>barty</dc:creator>
		<pubDate>Sun, 30 Mar 2008 17:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-19</guid>
		<description>one minor note: you should add 

self.activation_code  = nil 

before update_attributes ... in your User#reset_password.  A non nil activation_code indicates the user is not activated and may cause problems elsewhere.</description>
		<content:encoded><![CDATA[<p>one minor note: you should add </p>
<p>self.activation_code  = nil </p>
<p>before update_attributes &#8230; in your User#reset_password.  A non nil activation_code indicates the user is not activated and may cause problems elsewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barty</title>
		<link>http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-18</link>
		<dc:creator>barty</dc:creator>
		<pubDate>Sun, 30 Mar 2008 15:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-18</guid>
		<description>I noticed:

def forgot_password  
  @forget_pw = true  
  self.make_activation_code  
  self.save  
end  
  
def forgot_pw?  
  @forgot_pw  
end  
  
 @forgEt_pw vs   @forgOt_pw.  could it be a simple typo?</description>
		<content:encoded><![CDATA[<p>I noticed:</p>
<p>def forgot_password<br />
  @forget_pw = true<br />
  self.make_activation_code<br />
  self.save<br />
end  </p>
<p>def forgot_pw?<br />
  @forgot_pw<br />
end  </p>
<p> @forgEt_pw vs   @forgOt_pw.  could it be a simple typo?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-5</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Thu, 06 Mar 2008 22:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-5</guid>
		<description>You're right Eric, I did forget that part.  I was having issues with the app sending emails at the wrong time so I removed some of those lines and forgot to add the code.  A problem I ran into with the instance variables was setting them to true, after the model was saved.  Because of that, the observer would always see false values and never send emails or react the correct way.  So if you know your mail settings are correct, check where you are setting those variables to true.
I am in the process of rewriting this code and will include a complete sample app to download too. Should be ready in a day or so.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right Eric, I did forget that part.  I was having issues with the app sending emails at the wrong time so I removed some of those lines and forgot to add the code.  A problem I ran into with the instance variables was setting them to true, after the model was saved.  Because of that, the observer would always see false values and never send emails or react the correct way.  So if you know your mail settings are correct, check where you are setting those variables to true.<br />
I am in the process of rewriting this code and will include a complete sample app to download too. Should be ready in a day or so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Jensen</title>
		<link>http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-4</link>
		<dc:creator>Eric Jensen</dc:creator>
		<pubDate>Tue, 04 Mar 2008 21:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-4</guid>
		<description>Looks like you forgot to include the changes to user_observer.rb  I added the two lines I thought would do the trick, but they are not:

  	UserMailer.deliver_forgot_password(user) if user.forgot_pw?
  	UserMailer.deliver_reset_password(user) if user.reset_pw?

I never get the emails for forgotton/changed pw's.  Perhaps this has something to do with the boolean instance variable trouble you were having?</description>
		<content:encoded><![CDATA[<p>Looks like you forgot to include the changes to user_observer.rb  I added the two lines I thought would do the trick, but they are not:</p>
<p>  	UserMailer.deliver_forgot_password(user) if user.forgot_pw?<br />
  	UserMailer.deliver_reset_password(user) if user.reset_pw?</p>
<p>I never get the emails for forgotton/changed pw&#8217;s.  Perhaps this has something to do with the boolean instance variable trouble you were having?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-3</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Tue, 04 Mar 2008 15:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/02/20/my-take-on-restful_authentication/#comment-3</guid>
		<description>Give download a complete sample app. Thanks!</description>
		<content:encoded><![CDATA[<p>Give download a complete sample app. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
