<?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: Adding Some Additional Security Measures to restful_authentication</title>
	<atom:link href="http://danengle.us/2009/03/adding-some-additional-security-measures-to-restful_authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://danengle.us/2009/03/adding-some-additional-security-measures-to-restful_authentication/</link>
	<description>Dan Engle's Rails and Web Development Blog</description>
	<lastBuildDate>Wed, 25 Aug 2010 21:08:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: garage roller doors</title>
		<link>http://danengle.us/2009/03/adding-some-additional-security-measures-to-restful_authentication/comment-page-1/#comment-420</link>
		<dc:creator>garage roller doors</dc:creator>
		<pubDate>Fri, 25 Jun 2010 12:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://danengle.us/?p=68#comment-420</guid>
		<description>thanks for this it was an interesting read.</description>
		<content:encoded><![CDATA[<p>thanks for this it was an interesting read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://danengle.us/2009/03/adding-some-additional-security-measures-to-restful_authentication/comment-page-1/#comment-403</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 04 Aug 2009 21:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://danengle.us/?p=68#comment-403</guid>
		<description>I thought about keeping the full login history, but I ultimately decided against it because keeping track of all of them could cause the database to grow fairly large and then you&#039;d probably need a cron job of sorts to remove records that are x days or so old, so this was just a simpler solution.

by_attempt_window is a named_scope of the LoginAttempt model, so you&#039;ll want to place it in there.

Thanks for the comment!</description>
		<content:encoded><![CDATA[<p>I thought about keeping the full login history, but I ultimately decided against it because keeping track of all of them could cause the database to grow fairly large and then you&#8217;d probably need a cron job of sorts to remove records that are x days or so old, so this was just a simpler solution.</p>
<p>by_attempt_window is a named_scope of the LoginAttempt model, so you&#8217;ll want to place it in there.</p>
<p>Thanks for the comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Rosenstein</title>
		<link>http://danengle.us/2009/03/adding-some-additional-security-measures-to-restful_authentication/comment-page-1/#comment-402</link>
		<dc:creator>Phil Rosenstein</dc:creator>
		<pubDate>Thu, 30 Jul 2009 03:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://danengle.us/?p=68#comment-402</guid>
		<description>I&#039;m making similar additions to restful_authentication (without aasm) but I&#039;m planning to have LoginAttempt keep a full login history instead of just the most recent failed attempts.  

I&#039;m somewhat of a rails noob and so I&#039;m wondering where &quot;by_attempt_window&quot; comes from?  I tried adding the following to my user model:
named_scope :by_attempt_window, lambda { &#124;time_ago&#124; { :conditions =&gt; [&#039;created_at &gt; ?&#039;, time_ago] } }
but I still get undefined method `by_attempt_window&#039;.

This is a good project, I agree that restful_authentication needs this.</description>
		<content:encoded><![CDATA[<p>I&#8217;m making similar additions to restful_authentication (without aasm) but I&#8217;m planning to have LoginAttempt keep a full login history instead of just the most recent failed attempts.  </p>
<p>I&#8217;m somewhat of a rails noob and so I&#8217;m wondering where &#8220;by_attempt_window&#8221; comes from?  I tried adding the following to my user model:<br />
named_scope :by_attempt_window, lambda { |time_ago| { :conditions =&gt; ['created_at &gt; ?', time_ago] } }<br />
but I still get undefined method `by_attempt_window&#8217;.</p>
<p>This is a good project, I agree that restful_authentication needs this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

