<?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: Reset Lost Passwords in CakePHP</title>
	<atom:link href="http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp</link>
	<description>get all his digital goodness 24/7</description>
	<lastBuildDate>Mon, 08 Mar 2010 15:08:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Mark-a-Spot &#187; Blog Archive &#187; Tools im Einsatz</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-1289</link>
		<dc:creator>Mark-a-Spot &#187; Blog Archive &#187; Tools im Einsatz</dc:creator>
		<pubDate>Thu, 04 Feb 2010 21:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-1289</guid>
		<description>[...]  Basierend auf diesem Tutorial wurde eine Passwort-Reset-Komponente zum Laufen gebracht. Sie ähnelt dieser 1.1er Variante, die [...]</description>
		<content:encoded><![CDATA[<p>[...]  Basierend auf diesem Tutorial wurde eine Passwort-Reset-Komponente zum Laufen gebracht. Sie ähnelt dieser 1.1er Variante, die [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: neel</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-1279</link>
		<dc:creator>neel</dc:creator>
		<pubDate>Mon, 11 Jan 2010 08:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-1279</guid>
		<description>Nice tutorial. I am a newbie and want to learn the basics of cakephp. I am currently working on a Cakephp project. your tutorial help me alot to create the forgot password page.</description>
		<content:encoded><![CDATA[<p>Nice tutorial. I am a newbie and want to learn the basics of cakephp. I am currently working on a Cakephp project. your tutorial help me alot to create the forgot password page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lyn</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-1100</link>
		<dc:creator>lyn</dc:creator>
		<pubDate>Mon, 04 May 2009 02:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-1100</guid>
		<description>hello, can you help me how to make a reset password using the cakephp 1.1? I am trying to modify the code using the 1.1 but it doesn&#039;t work. 

Thanks</description>
		<content:encoded><![CDATA[<p>hello, can you help me how to make a reset password using the cakephp 1.1? I am trying to modify the code using the 1.1 but it doesn&#8217;t work. </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikhil</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-797</link>
		<dc:creator>Nikhil</dc:creator>
		<pubDate>Tue, 14 Apr 2009 08:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-797</guid>
		<description>Thanks!!! I was thinking having a temp user database integrated with the token db. But that didn&#039;t fizzle out too well however. The solution of activated/non activated users seems to be great. I will try it out. Thanks again for the enlightenment ;). Will keep you updated on the same.</description>
		<content:encoded><![CDATA[<p>Thanks!!! I was thinking having a temp user database integrated with the token db. But that didn&#8217;t fizzle out too well however. The solution of activated/non activated users seems to be great. I will try it out. Thanks again for the enlightenment <img src='http://edwardawebb.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Will keep you updated on the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-781</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Mon, 13 Apr 2009 20:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-781</guid>
		<description>@Nikhil
That is no problem, the basic ticket method can be used for any action. I use it on another site as a 1-time invitation between users.  It all depends on where and how you call the Ticket component&#039;s methods.
Seems there are a few options.  You can add a &#039;Activated&#039; field to your user&#039;s table, and only allow activated users to sign in.  Or you can add the password as a hashed value to the  the  tickets table.  this value can then be dropped directly into the user&#039;s table once they use the ticket.</description>
		<content:encoded><![CDATA[<p>@Nikhil<br />
That is no problem, the basic ticket method can be used for any action. I use it on another site as a 1-time invitation between users.  It all depends on where and how you call the Ticket component&#8217;s methods.<br />
Seems there are a few options.  You can add a &#8216;Activated&#8217; field to your user&#8217;s table, and only allow activated users to sign in.  Or you can add the password as a hashed value to the  the  tickets table.  this value can then be dropped directly into the user&#8217;s table once they use the ticket.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikhil</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-777</link>
		<dc:creator>Nikhil</dc:creator>
		<pubDate>Mon, 13 Apr 2009 19:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-777</guid>
		<description>hello...

Thats a very interesting tutorial you have there... I am trying to use it for my user registration forms.. Where in I want to validate the user information using a token/ticket.. however I have run into small problems (the below material may be slightly off - topic) .. it will be very nice if  someone helps me out here

What I have done is kind of integrated the newpassword and useticket function... In new password you make sure the user is logged in and then capture the data to reset the password... however... in my case the user is not logged in .. he can only log in if the token is verified... then how do i go abt it... capturing the earlier entered data... 

well I am stuck there... thanks in advance for any help rendered...</description>
		<content:encoded><![CDATA[<p>hello&#8230;</p>
<p>Thats a very interesting tutorial you have there&#8230; I am trying to use it for my user registration forms.. Where in I want to validate the user information using a token/ticket.. however I have run into small problems (the below material may be slightly off &#8211; topic) .. it will be very nice if  someone helps me out here</p>
<p>What I have done is kind of integrated the newpassword and useticket function&#8230; In new password you make sure the user is logged in and then capture the data to reset the password&#8230; however&#8230; in my case the user is not logged in .. he can only log in if the token is verified&#8230; then how do i go abt it&#8230; capturing the earlier entered data&#8230; </p>
<p>well I am stuck there&#8230; thanks in advance for any help rendered&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-318</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Thu, 26 Feb 2009 23:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-318</guid>
		<description>@Joel Pearson
Thanks for your feedback.
The first comment refers to all tickets created for that action, which is saved as a hashed value. THis is in case a user requests multiple resets, the first use kills all the tickets.
THe second area was overlooked, and limit should explicitly be set for a higher value, or no limit at all.
I will update these areas when i have a chance</description>
		<content:encoded><![CDATA[<p>@Joel Pearson<br />
Thanks for your feedback.<br />
The first comment refers to all tickets created for that action, which is saved as a hashed value. THis is in case a user requests multiple resets, the first use kills all the tickets.<br />
THe second area was overlooked, and limit should explicitly be set for a higher value, or no limit at all.<br />
I will update these areas when i have a chance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Pearson</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-295</link>
		<dc:creator>Joel Pearson</dc:creator>
		<pubDate>Mon, 23 Feb 2009 03:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-295</guid>
		<description>Looking at your voidTicket function the comment seems weird.

Because you say you will delete &quot;ALL&quot; tickets for &quot;this email&quot; but you pass the hash, which can only ever delete 1 ticket, because it is a unique column.
Did you mean for the voidTicket to delete all tickets that have the same data (ie email address)?  Because the hash doesn&#039;t have anything directly to do with the email address. If there are multiple tickets with the same data (email) only one of them is going to be deleted.

       /*
	 * actually for logical reason well be indiscrimnate and clean ALL tockets for this email
	 */
	function voidTicket($hash){
		$this-&gt;controller-&gt;Ticket-&gt;deleteAll(array(&#039;hash&#039; =&gt; $hash));
	}

Also why does purgeTickets() have a &quot;LIMIT 1&quot;?  So only 1 ticket is purged every time you run that function?  If so maybe it should be called purgeTicket (note the s has gone).  If it does only delete one at a time, is that just for performance reasons?

	function purgeTickets(){
		$this-&gt;controller-&gt;Ticket-&gt;deleteAll(&#039;Ticket.expires &lt;= now() LIMIT 1&#039;);
 
	}

Otherwise this looks pretty handy.</description>
		<content:encoded><![CDATA[<p>Looking at your voidTicket function the comment seems weird.</p>
<p>Because you say you will delete &#8220;ALL&#8221; tickets for &#8220;this email&#8221; but you pass the hash, which can only ever delete 1 ticket, because it is a unique column.<br />
Did you mean for the voidTicket to delete all tickets that have the same data (ie email address)?  Because the hash doesn&#8217;t have anything directly to do with the email address. If there are multiple tickets with the same data (email) only one of them is going to be deleted.</p>
<p>       /*<br />
	 * actually for logical reason well be indiscrimnate and clean ALL tockets for this email<br />
	 */<br />
	function voidTicket($hash){<br />
		$this-&gt;controller-&gt;Ticket-&gt;deleteAll(array(&#8216;hash&#8217; =&gt; $hash));<br />
	}</p>
<p>Also why does purgeTickets() have a &#8220;LIMIT 1&#8243;?  So only 1 ticket is purged every time you run that function?  If so maybe it should be called purgeTicket (note the s has gone).  If it does only delete one at a time, is that just for performance reasons?</p>
<p>	function purgeTickets(){<br />
		$this-&gt;controller-&gt;Ticket-&gt;deleteAll(&#8216;Ticket.expires &lt;= now() LIMIT 1&#8242;);</p>
<p>	}</p>
<p>Otherwise this looks pretty handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-277</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Fri, 20 Feb 2009 22:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-277</guid>
		<description>@Kofi

That is not necessary unless you omit the $components directive.

Furthermore that would add a good deal of overhead to re-instantiate the class every time it is used rather than once while loading the controller.</description>
		<content:encoded><![CDATA[<p>@Kofi</p>
<p>That is not necessary unless you omit the $components directive.</p>
<p>Furthermore that would add a good deal of overhead to re-instantiate the class every time it is used rather than once while loading the controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kofi</title>
		<link>http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-275</link>
		<dc:creator>kofi</dc:creator>
		<pubDate>Fri, 20 Feb 2009 17:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-275</guid>
		<description>@Joe, Rexford and anyone having issues with the resetpassword view not displaying after hitting submit.

You have make sure the Users controller is aware of the Ticket model and a Ticket instance exists in each controller action. Make sure to add the following lines:

App::import(&#039;Model&#039;,&#039;Ticket&#039;);
$this-&gt;Ticket = new Ticket();

before the:
 if ($this-&gt;Ticket-&gt;save($data) )

call in the resetpassword action. You should repeat this in each method where a Ticket action is issued; specifically in the voidTicket($hash) and checkTicket($hash) methods in the TicketMaster Component.

App::import(&#039;Model&#039;,&#039;Ticket&#039;);
$this-&gt;component-&gt;Ticket = new Ticket();

hope that helps.</description>
		<content:encoded><![CDATA[<p>@Joe, Rexford and anyone having issues with the resetpassword view not displaying after hitting submit.</p>
<p>You have make sure the Users controller is aware of the Ticket model and a Ticket instance exists in each controller action. Make sure to add the following lines:</p>
<p>App::import(&#8216;Model&#8217;,'Ticket&#8217;);<br />
$this-&gt;Ticket = new Ticket();</p>
<p>before the:<br />
 if ($this-&gt;Ticket-&gt;save($data) )</p>
<p>call in the resetpassword action. You should repeat this in each method where a Ticket action is issued; specifically in the voidTicket($hash) and checkTicket($hash) methods in the TicketMaster Component.</p>
<p>App::import(&#8216;Model&#8217;,'Ticket&#8217;);<br />
$this-&gt;component-&gt;Ticket = new Ticket();</p>
<p>hope that helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
