<?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/web-development/cakephp/reset-lost-passwords-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp</link>
	<description>get all his digital goodness 24/7</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:05:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: mark</title>
		<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-2917</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Fri, 22 Jul 2011 00:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-2917</guid>
		<description>for the validation you could consider using a behavior like the one I wrote today:
https://github.com/dereuromark/tools/blob/master/models/behaviors/change_password.php

example usage:
http://www.cakephp-forum.com/views/klartext-passwort-mit-auth-t1041.html#p4373

for your botcheck (i call it passive captcha^^) you could use a second behavior</description>
		<content:encoded><![CDATA[<p>for the validation you could consider using a behavior like the one I wrote today:<br />
<a href="https://github.com/dereuromark/tools/blob/master/models/behaviors/change_password.php" rel="nofollow">https://github.com/dereuromark/tools/blob/master/models/behaviors/change_password.php</a></p>
<p>example usage:<br />
<a href="http://www.cakephp-forum.com/views/klartext-passwort-mit-auth-t1041.html#p4373" rel="nofollow">http://www.cakephp-forum.com/views/klartext-passwort-mit-auth-t1041.html#p4373</a></p>
<p>for your botcheck (i call it passive captcha^^) you could use a second behavior</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-2846</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Wed, 27 Apr 2011 16:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-2846</guid>
		<description>@Fab

Thanks for the comment.

The link to get to the password reset page is a simple static link to &lt;code&gt;http://domain.com/users/resetpassword&lt;/code&gt;

Perhaps your system is using Auth, and relying on the login page to be created magically. Which you can discern if your login function in the User controller looks like this &lt;code&gt; function login() {}&lt;/code&gt;

BUT, you may optionally create a .ctp to render, as long as it provides the needed fields, and posts to the right URL.

Here is my app/views/users/login.ctp output of my login form:

&lt;pre lang=&quot;html&quot;&gt;

	
&lt;div id=&quot;login_page&quot;&gt;
	&lt;div id=&quot;login_box&quot;&gt;
	&lt;h3 class=&quot;flash_heading&quot;&gt;Please Login&lt;/h3&gt;
	&lt;?php if ($error): ?&gt;
	&lt;p&gt;&lt;?php echo $error_msg; ?&gt;&lt;/p&gt;
	&lt;?php endif; ?&gt;
	
	
	&lt;form action=&quot;&lt;?php echo $html-&gt;url(&#039;/users/login&#039;); ?&gt;&quot; method=&quot;post&quot;&gt;
	&lt;div class=&quot;logininput&quot;&gt;
	    &lt;?php echo $form-&gt;label(&#039;User.username&#039;,&#039;Username:&#039;) ?&gt;
	    &lt;?php echo $form-&gt;text(&#039;User.username&#039;, array(&#039;size&#039; =&gt; 20)); ?&gt;
	&lt;/div&gt;
	&lt;div class=&quot;logininput&quot;&gt;
	    &lt;label for=&quot;password&quot;&gt;Password:&lt;/label&gt;
	    &lt;?php echo $form-&gt;password(&#039;User.password&#039;, array(&#039;size&#039; =&gt; 20)); ?&gt;
	    
		&lt;?php echo &#039;&lt;span class=&quot;forgotpass&quot;&gt;Did you &#039;.$html-&gt;link(&#039;Forget your password?&#039;, &#039;/users/resetpassword&#039;).&#039;&lt;/span&gt;&#039;; ?&gt;
		
	&lt;/div&gt;
	&lt;div class=&quot;optional&quot;&gt;
	    &lt;?php echo $form-&gt;submit(&#039;Login&#039;); ?&gt;
	&lt;/div&gt;
	&lt;/form&gt;
	
	&lt;div&gt;
	&lt;?php echo &quot;Don&#039;t have an account?&lt;br /&gt; &quot;.$html-&gt;link(&#039;Register&#039;, &#039;/users/register&#039;).&quot; now, it&#039;s free and easy.&quot;; ?&gt;
	&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;


 &lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>@Fab</p>
<p>Thanks for the comment.</p>
<p>The link to get to the password reset page is a simple static link to <code><a href="http://domain.com/users/resetpassword" rel="nofollow">http://domain.com/users/resetpassword</a></code></p>
<p>Perhaps your system is using Auth, and relying on the login page to be created magically. Which you can discern if your login function in the User controller looks like this <code> function login() {}</code></p>
<p>BUT, you may optionally create a .ctp to render, as long as it provides the needed fields, and posts to the right URL.</p>
<p>Here is my app/views/users/login.ctp output of my login form:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&nbsp;
&nbsp;
&lt;div id=&quot;login_page&quot;&gt;
	&lt;div id=&quot;login_box&quot;&gt;
	&lt;h3 class=&quot;flash_heading&quot;&gt;Please Login&lt;/h3&gt;
	&lt;?php if ($error): ?&gt;
	&lt;p&gt;&lt;?php echo $error_msg; ?&gt;&lt;/p&gt;
	&lt;?php endif; ?&gt;
&nbsp;
&nbsp;
	&lt;form action=&quot;&lt;?php echo $html-&gt;url('/users/login'); ?&gt;&quot; method=&quot;post&quot;&gt;
	&lt;div class=&quot;logininput&quot;&gt;
	    &lt;?php echo $form-&gt;label('User.username','Username:') ?&gt;
	    &lt;?php echo $form-&gt;text('User.username', array('size' =&gt; 20)); ?&gt;
	&lt;/div&gt;
	&lt;div class=&quot;logininput&quot;&gt;
	    &lt;label for=&quot;password&quot;&gt;Password:&lt;/label&gt;
	    &lt;?php echo $form-&gt;password('User.password', array('size' =&gt; 20)); ?&gt;
&nbsp;
		&lt;?php echo '&lt;span class=&quot;forgotpass&quot;&gt;Did you '.$html-&gt;link('Forget your password?', '/users/resetpassword').'&lt;/span&gt;'; ?&gt;
&nbsp;
	&lt;/div&gt;
	&lt;div class=&quot;optional&quot;&gt;
	    &lt;?php echo $form-&gt;submit('Login'); ?&gt;
	&lt;/div&gt;
	&lt;/form&gt;
&nbsp;
	&lt;div&gt;
	&lt;?php echo &quot;Don't have an account?&lt;br /&gt; &quot;.$html-&gt;link('Register', '/users/register').&quot; now, it's free and easy.&quot;; ?&gt;
	&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Fabien Millerand</title>
		<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-2845</link>
		<dc:creator>Fabien Millerand</dc:creator>
		<pubDate>Wed, 27 Apr 2011 15:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-2845</guid>
		<description>Hi there,

Thanks for the tutorial. 
I am a newbie to cake php.
I impemented all of the above but I cannot find a way to add a link to the reset password form in my login.ctp template (I am actually taking over form a previous developper)...
Could you guys help me?

Cheers,
Fab</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Thanks for the tutorial.<br />
I am a newbie to cake php.<br />
I impemented all of the above but I cannot find a way to add a link to the reset password form in my login.ctp template (I am actually taking over form a previous developper)&#8230;<br />
Could you guys help me?</p>
<p>Cheers,<br />
Fab</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-2785</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Mon, 31 Jan 2011 13:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-2785</guid>
		<description>@Sukata

You will need to troubleshoot your issue and provide more detail.  I think I have given quite enough for the compensation I am being paid...</description>
		<content:encoded><![CDATA[<p>@Sukata</p>
<p>You will need to troubleshoot your issue and provide more detail.  I think I have given quite enough for the compensation I am being paid&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-2784</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Mon, 31 Jan 2011 13:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-2784</guid>
		<description>@Rob M

You&#039;re absolutely correct in_array() is case-sensitive.  My actual installation uses a database table full of random question and answers.

And to be compeltly sure, we&#039;d be best of to convert the array&#039;s content to lower case as we load them from the DB.

Thanks for looking out!</description>
		<content:encoded><![CDATA[<p>@Rob M</p>
<p>You&#8217;re absolutely correct in_array() is case-sensitive.  My actual installation uses a database table full of random question and answers.</p>
<p>And to be compeltly sure, we&#8217;d be best of to convert the array&#8217;s content to lower case as we load them from the DB.</p>
<p>Thanks for looking out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob M</title>
		<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-2783</link>
		<dc:creator>Rob M</dc:creator>
		<pubDate>Mon, 31 Jan 2011 01:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-2783</guid>
		<description>Wow. This is excellent. One tiny detail:
$this-&gt;humanWouldType=array(&#039;Yes&#039;, &#039;of course&#039;);
the &#039;Y&#039; in yes wants to be lowercase, as strtolower() is used to compare with input</description>
		<content:encoded><![CDATA[<p>Wow. This is excellent. One tiny detail:<br />
$this-&gt;humanWouldType=array(&#8216;Yes&#8217;, &#8216;of course&#8217;);<br />
the &#8216;Y&#8217; in yes wants to be lowercase, as strtolower() is used to compare with input</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sukanta</title>
		<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-2771</link>
		<dc:creator>sukanta</dc:creator>
		<pubDate>Thu, 13 Jan 2011 07:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-2771</guid>
		<description>i am trying to use this ticket method but this is not working, i am just getting a blank page after installing all those here. please give me solution.</description>
		<content:encoded><![CDATA[<p>i am trying to use this ticket method but this is not working, i am just getting a blank page after installing all those here. please give me solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reset Lost Passwords in CakePHP &#124; Edward A. Webb (.com) &#124; Source code bank</title>
		<link>http://edwardawebb.com/web-development/cakephp/reset-lost-passwords-cakephp/comment-page-1/#comment-1340</link>
		<dc:creator>Reset Lost Passwords in CakePHP &#124; Edward A. Webb (.com) &#124; Source code bank</dc:creator>
		<pubDate>Sat, 10 Apr 2010 10:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://edwardawebb.com/?p=209#comment-1340</guid>
		<description>[...] this link: Reset Lost Passwords in CakePHP &#124; Edward A. Webb (.com)   If you enjoyed this article please consider sharing [...]</description>
		<content:encoded><![CDATA[<p>[...] this link: Reset Lost Passwords in CakePHP | Edward A. Webb (.com)   If you enjoyed this article please consider sharing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark-a-Spot &#187; Blog Archive &#187; Tools im Einsatz</title>
		<link>http://edwardawebb.com/web-development/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/web-development/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>
</channel>
</rss>

