<?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: CakePHP 1.2.* Auth Component Tutorial</title>
	<atom:link href="http://www.jbcrawford.net/archives/45/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jbcrawford.net/archives/45</link>
	<description>Hello World!</description>
	<lastBuildDate>Fri, 06 Aug 2010 12:33:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: links for 2010-06-11 &#171; Breyten&#8217;s Dev Blog</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-520</link>
		<dc:creator>links for 2010-06-11 &#171; Breyten&#8217;s Dev Blog</dc:creator>
		<pubDate>Fri, 11 Jun 2010 10:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-520</guid>
		<description>[...] Joseph Crawford » CakePHP 1.2.* Auth Component Tutorial (tags: phpcake php cake authentication password change howto) [...]</description>
		<content:encoded><![CDATA[<p>[...] Joseph Crawford » CakePHP 1.2.* Auth Component Tutorial (tags: phpcake php cake authentication password change howto) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Oberhausen</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-515</link>
		<dc:creator>Erik Oberhausen</dc:creator>
		<pubDate>Thu, 08 Apr 2010 13:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-515</guid>
		<description>No problems.
I ended up just doing a redirect from the pages controller that pushes to the users login page.
Not very cake like, I&#039;m sure there is a better way...
Thanks for the reply and thanks again for your helpful article!</description>
		<content:encoded><![CDATA[<p>No problems.<br />
I ended up just doing a redirect from the pages controller that pushes to the users login page.<br />
Not very cake like, I&#8217;m sure there is a better way&#8230;<br />
Thanks for the reply and thanks again for your helpful article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-514</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Thu, 08 Apr 2010 11:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-514</guid>
		<description>I think I have ran into that one before but can not remember exactly what was causing it. You should not need to allow your login action...that is handled by the auth components. Try going into the #cakephp channel on irc and see if somebody there can help you out. They have paste bin which makes it much easier for others to help you debug. Sorry I couldn&#039;t give you a right away answer, just woke up and the brain isn&#039;t firing yet, lol.
Good luck, hope you get it working! ~Joseph</description>
		<content:encoded><![CDATA[<p>I think I have ran into that one before but can not remember exactly what was causing it. You should not need to allow your login action&#8230;that is handled by the auth components. Try going into the #cakephp channel on irc and see if somebody there can help you out. They have paste bin which makes it much easier for others to help you debug. Sorry I couldn&#8217;t give you a right away answer, just woke up and the brain isn&#8217;t firing yet, lol.<br />
Good luck, hope you get it working! ~Joseph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Oberhausen</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-513</link>
		<dc:creator>Erik Oberhausen</dc:creator>
		<pubDate>Wed, 07 Apr 2010 23:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-513</guid>
		<description>Joseph, thank you for this very helpful article.
It&#039;s all working well.
One thing I am running into however is when attempting to set the base url from routes, auth is not allowing permission to the login page.
I have this in routes:

Router::connect(&#039;/&#039;, array(&#039;controller&#039; =&gt; &#039;users&#039;, &#039;action&#039; =&gt; &#039;login&#039;));

I get the auth error of &quot;You are not authorized to access that location.&quot;
Also tried adding to app_controller:

if ($this-&gt;name == &#039;Users&#039;) { 
       		 $this-&gt;Auth-&gt;allow(&#039;login&#039;); 
   		 } 

which creates an even weirder behavior where the password field gets some strange value added on submit.
Any ideas would be appreciated!</description>
		<content:encoded><![CDATA[<p>Joseph, thank you for this very helpful article.<br />
It&#8217;s all working well.<br />
One thing I am running into however is when attempting to set the base url from routes, auth is not allowing permission to the login page.<br />
I have this in routes:</p>
<p>Router::connect(&#8216;/&#8217;, array(&#8216;controller&#8217; =&gt; &#8216;users&#8217;, &#8216;action&#8217; =&gt; &#8216;login&#8217;));</p>
<p>I get the auth error of &#8220;You are not authorized to access that location.&#8221;<br />
Also tried adding to app_controller:</p>
<p>if ($this-&gt;name == &#8216;Users&#8217;) {<br />
       		 $this-&gt;Auth-&gt;allow(&#8216;login&#8217;);<br />
   		 } </p>
<p>which creates an even weirder behavior where the password field gets some strange value added on submit.<br />
Any ideas would be appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-504</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Fri, 19 Feb 2010 19:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-504</guid>
		<description>Hello juan,
When you save your user information are you doing it like $this-&gt;User-&gt;save($this-&gt;Auth-&gt;hashPasswords($this-&gt;data)); ?</description>
		<content:encoded><![CDATA[<p>Hello juan,<br />
When you save your user information are you doing it like $this->User->save($this->Auth->hashPasswords($this->data)); ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: juan</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-503</link>
		<dc:creator>juan</dc:creator>
		<pubDate>Fri, 19 Feb 2010 19:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-503</guid>
		<description>Hi Joseph, it&#039;s a great tutorial, it works perfectly but i have a problem:

I&#039;m using another name for &quot;user&quot; table, &quot;usuarios&quot; in spanish (usuario.php &gt; model, usuarios_controller.php &gt; controller) and i made all the corrections in your code.
It works nice but the password on my mysql table is not hashed, i don&#039;t know why, the add function save the password as i typed in the password text field.

I would appreciate your help with this.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Joseph, it&#8217;s a great tutorial, it works perfectly but i have a problem:</p>
<p>I&#8217;m using another name for &#8220;user&#8221; table, &#8220;usuarios&#8221; in spanish (usuario.php &gt; model, usuarios_controller.php &gt; controller) and i made all the corrections in your code.<br />
It works nice but the password on my mysql table is not hashed, i don&#8217;t know why, the add function save the password as i typed in the password text field.</p>
<p>I would appreciate your help with this.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: in2lag</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-471</link>
		<dc:creator>in2lag</dc:creator>
		<pubDate>Mon, 21 Dec 2009 11:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-471</guid>
		<description>nice article! after reading lots of posts over the inet, this was the most helpfull. just one question, is there some possibility, how express order of validation rules (because of messages)...</description>
		<content:encoded><![CDATA[<p>nice article! after reading lots of posts over the inet, this was the most helpfull. just one question, is there some possibility, how express order of validation rules (because of messages)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-465</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Wed, 16 Dec 2009 21:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-465</guid>
		<description>Hi Kris,
I&#039;m not sure which model you are referring to. It could either just be thrown in there out of habit so don&#039;t let it confuse you. There are situations where that would be applicable though. If you have a field with multiple validations. You would want to continue added required to each validation rule otherwise not adding it to following rules will cause it to not be required. All &#039;required&#039; really does is add a required class to the div element for styling. So it isn&#039;t even really necessary. I hope that cleared things up for you.</description>
		<content:encoded><![CDATA[<p>Hi Kris,<br />
I&#8217;m not sure which model you are referring to. It could either just be thrown in there out of habit so don&#8217;t let it confuse you. There are situations where that would be applicable though. If you have a field with multiple validations. You would want to continue added required to each validation rule otherwise not adding it to following rules will cause it to not be required. All &#8216;required&#8217; really does is add a required class to the div element for styling. So it isn&#8217;t even really necessary. I hope that cleared things up for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-464</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Wed, 16 Dec 2009 21:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-464</guid>
		<description>A bit of newbie question here, hopefully you can help out my confusion!?

&#039;required&#039; =&gt; true
&#039;allowEmpty&#039; =&gt; true

How does this work? the field value is required, and yet is allowed to be empty?

Aplogises if this is a really dumb question as I still learning! :)</description>
		<content:encoded><![CDATA[<p>A bit of newbie question here, hopefully you can help out my confusion!?</p>
<p>&#8216;required&#8217; =&gt; true<br />
&#8216;allowEmpty&#8217; =&gt; true</p>
<p>How does this work? the field value is required, and yet is allowed to be empty?</p>
<p>Aplogises if this is a really dumb question as I still learning! <img src='http://www.jbcrawford.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Alexander</title>
		<link>http://www.jbcrawford.net/archives/45/comment-page-1#comment-448</link>
		<dc:creator>Matt Alexander</dc:creator>
		<pubDate>Fri, 13 Nov 2009 11:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.jbcrawford.net/?p=45#comment-448</guid>
		<description>This is awesome. Especially the update-password-only-if-filled-in part. Great work.</description>
		<content:encoded><![CDATA[<p>This is awesome. Especially the update-password-only-if-filled-in part. Great work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
