<?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: How to Change or Reset your Password with RESTful_authentication</title>
	<atom:link href="http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/</link>
	<description>Ruby on Rails web application design, development and consulting</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:45:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ron</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-29523</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Tue, 16 Aug 2011 13:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-29523</guid>
		<description>Thanks a lot, worked great.</description>
		<content:encoded><![CDATA[<p>Thanks a lot, worked great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Art</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-21</link>
		<dc:creator>Art</dc:creator>
		<pubDate>Wed, 03 Mar 2010 03:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-21</guid>
		<description>Authentication on whether the passwords are of correct length are bypassed somehow.  Any ideas?</description>
		<content:encoded><![CDATA[<p>Authentication on whether the passwords are of correct length are bypassed somehow.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristobal Viedma</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-20</link>
		<dc:creator>Cristobal Viedma</dc:creator>
		<pubDate>Tue, 22 Sep 2009 13:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-20</guid>
		<description>I still don&#039;t get it. I think Ben is talking to the PasswordsController Create method. As in, if I know your username and email, I can be resetting your password as many times as I want, and I could be doing that everyday. Isn&#039;t it so?</description>
		<content:encoded><![CDATA[<p>I still don&#8217;t get it. I think Ben is talking to the PasswordsController Create method. As in, if I know your username and email, I can be resetting your password as many times as I want, and I could be doing that everyday. Isn&#8217;t it so?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-19</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Tue, 01 Sep 2009 09:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-19</guid>
		<description>So I tried to make it so that when the user logs in with the @new_password that it would go to the edit password page so they have to change it. This is what I put it in but it doesn&#039;t work...

This is in the create method of the Sessions controller.

      if user.password == @new_password
        redirect_to edit_user_password_path(user)
      else
        redirect_back_or_default(&#039;/&#039;)
        flash[:notice] = &quot;You are now logged in.&quot;
      end

Any ideas?</description>
		<content:encoded><![CDATA[<p>So I tried to make it so that when the user logs in with the @new_password that it would go to the edit password page so they have to change it. This is what I put it in but it doesn&#8217;t work&#8230;</p>
<p>This is in the create method of the Sessions controller.</p>
<p>      if user.password == @new_password<br />
        redirect_to edit_user_password_path(user)<br />
      else<br />
        redirect_back_or_default(&#8216;/&#8217;)<br />
        flash[:notice] = &#8220;You are now logged in.&#8221;<br />
      end</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: celio motta</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-18</link>
		<dc:creator>celio motta</dc:creator>
		<pubDate>Sat, 25 Apr 2009 01:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-18</guid>
		<description>thanks!!! really helpful!!</description>
		<content:encoded><![CDATA[<p>thanks!!! really helpful!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Notowidagdo</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-17</link>
		<dc:creator>William Notowidagdo</dc:creator>
		<pubDate>Tue, 31 Mar 2009 07:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-17</guid>
		<description>Hi,

I follow your post but somehow in my case this

@user.authenticated?(old_password)

retur false.

Any idea what&#039;s wrong?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I follow your post but somehow in my case this</p>
<p>@user.authenticated?(old_password)</p>
<p>retur false.</p>
<p>Any idea what&#8217;s wrong?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikhailov</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-16</link>
		<dc:creator>Mikhailov</dc:creator>
		<pubDate>Tue, 06 Jan 2009 17:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-16</guid>
		<description>Generate random password in Rails.

http://www.railsgeek.com/2009/1/6/generate-random-password-in-rails

I am using Restful_authentication plugin for one of my projects. As part of my user creation workflow, system should to generate a random password for the new user.</description>
		<content:encoded><![CDATA[<p>Generate random password in Rails.</p>
<p><a href="http://www.railsgeek.com/2009/1/6/generate-random-password-in-rails" rel="nofollow">http://www.railsgeek.com/2009/1/6/generate-random-password-in-rails</a></p>
<p>I am using Restful_authentication plugin for one of my projects. As part of my user creation workflow, system should to generate a random password for the new user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis Simoneau</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-15</link>
		<dc:creator>Louis Simoneau</dc:creator>
		<pubDate>Tue, 25 Nov 2008 23:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-15</guid>
		<description>Hi, thanks for this elegant and RESTful solution to this problem. I have one question however: it seems to me that the generation of a new password and the sending of the notification email would be better located in a Model method than in the controller.

However, since the User model is generated by restful_authentication, I thought that might be your reason for putting this logic in the controller (keeping the restful_authentication stuff &quot;pure&quot;).

In my application, I&#039;ve put it in the User model, but was just wondering if there was something I&#039;m missing?</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this elegant and RESTful solution to this problem. I have one question however: it seems to me that the generation of a new password and the sending of the notification email would be better located in a Model method than in the controller.</p>
<p>However, since the User model is generated by restful_authentication, I thought that might be your reason for putting this logic in the controller (keeping the restful_authentication stuff &#8220;pure&#8221;).</p>
<p>In my application, I&#8217;ve put it in the User model, but was just wondering if there was something I&#8217;m missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-14</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 14 Nov 2008 20:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-14</guid>
		<description>@Ben The PasswordsController update method will only change the password for &quot;current_user&quot; which, in RESTful_authentication&quot; is set once the user authenticates first.  So, you could only change John&#039;s password if you could authenticate as him.</description>
		<content:encoded><![CDATA[<p>@Ben The PasswordsController update method will only change the password for &#8220;current_user&#8221; which, in RESTful_authentication&#8221; is set once the user authenticates first.  So, you could only change John&#8217;s password if you could authenticate as him.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Johnson</title>
		<link>http://www.justinbritten.com/work/2008/03/how-to-change-or-reset-your-password-with-restful_authentication/#comment-13</link>
		<dc:creator>Ben Johnson</dc:creator>
		<pubDate>Fri, 14 Nov 2008 19:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://compulsivoco.wordpress.com/?p=4#comment-13</guid>
		<description>This is a good post, but I think there is a big fundamental mistake here. What&#039;s to keep me from resetting random user&#039;s passwords? Let&#039;s say I know someone&#039;s login is &quot;john&quot;, but that is not my login. I don&#039;t like John, so I will go and reset his password every day.</description>
		<content:encoded><![CDATA[<p>This is a good post, but I think there is a big fundamental mistake here. What&#8217;s to keep me from resetting random user&#8217;s passwords? Let&#8217;s say I know someone&#8217;s login is &#8220;john&#8221;, but that is not my login. I don&#8217;t like John, so I will go and reset his password every day.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

