<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: How to use AuthComponent in CakePHP</title>
	<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/</link>
	<description>Specialty cuisines: app development, internet marketing and entrepreneurship</description>
	<pubDate>Tue, 18 Nov 2008 22:01:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Gonzalo</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-1047</link>
		<author>Gonzalo</author>
		<pubDate>Tue, 15 Jul 2008 23:04:29 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-1047</guid>
		<description>&lt;p&gt;I'm new to cakephp and I'm trying to use the Auth component. Which is working fine at my project but I'm stucked with (I think) the most obvious thing of the world.&lt;/p&gt;

&lt;p&gt;I want to show a diferent element (or a variation of the same element) depending if the user is logged or not. The only way I found to do it is by checking it in every function and setting a variable that I check on the view.&lt;/p&gt;

&lt;p&gt;Is there any simpler way to do it ?
Thanks in advance.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m new to cakephp and I&#8217;m trying to use the Auth component. Which is working fine at my project but I&#8217;m stucked with (I think) the most obvious thing of the world.</p>

<p>I want to show a diferent element (or a variation of the same element) depending if the user is logged or not. The only way I found to do it is by checking it in every function and setting a variable that I check on the view.</p>

<p>Is there any simpler way to do it ?
Thanks in advance.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: gerroy</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-656</link>
		<author>gerroy</author>
		<pubDate>Wed, 11 Jun 2008 06:15:33 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-656</guid>
		<description>&lt;p&gt;I write as you:
Security::setHash(”md5″);
but I got the following error:
Invalid Login.
this means the password was wrong,
can you tell me the reason and contact me with email
my email:mnbghj929.student@sina.com
Thanks!
my cakephp version:1.2…rc
I come from china.Welcome you !&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I write as you:
Security::setHash(”md5″);
but I got the following error:
Invalid Login.
this means the password was wrong,
can you tell me the reason and contact me with email
my email:mnbghj929.student@sina.com
Thanks!
my cakephp version:1.2…rc
I come from china.Welcome you !</p>]]></content:encoded>
	</item>
	<item>
		<title>By: GogoKodo</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-539</link>
		<author>GogoKodo</author>
		<pubDate>Sat, 19 Apr 2008 17:20:52 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-539</guid>
		<description>&lt;p&gt;I'm having trouble getting this to work 100%.
The log in seems to work, it validates properly and redirects me to the page I specified (non-protected page).  But then if I try to follow any links to protected pages I get a redirect loop (infinite redirect).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m having trouble getting this to work 100%.
The log in seems to work, it validates properly and redirects me to the page I specified (non-protected page).  But then if I try to follow any links to protected pages I get a redirect loop (infinite redirect).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Gales</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-315</link>
		<author>Jon Gales</author>
		<pubDate>Mon, 28 Jan 2008 21:49:07 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-315</guid>
		<description>&lt;p&gt;This is exactly what I was looking for (having to set all the allowed actions seemed really tedious for a mostly public site). I did run into one small kink and was able to fix it. &lt;/p&gt;

&lt;p&gt;Using the code supplied here my login form broke--it didn't show error messages and the returning form came back auto-populating the hashed password field. Not cool. Making my login action an ignored method fixed this. &lt;/p&gt;

&lt;p&gt;Replace:&lt;/p&gt;

&lt;p&gt;$ignored_methods = array();&lt;/p&gt;

&lt;p&gt;With:&lt;/p&gt;

&lt;p&gt;$ignored_methods = array('login');&lt;/p&gt;

&lt;p&gt;The form started working again and all is well.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is exactly what I was looking for (having to set all the allowed actions seemed really tedious for a mostly public site). I did run into one small kink and was able to fix it. </p>

<p>Using the code supplied here my login form broke&#8211;it didn&#8217;t show error messages and the returning form came back auto-populating the hashed password field. Not cool. Making my login action an ignored method fixed this. </p>

<p>Replace:</p>

<p>$ignored_methods = array();</p>

<p>With:</p>

<p>$ignored_methods = array(&#8217;login&#8217;);</p>

<p>The form started working again and all is well.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zsw</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-115</link>
		<author>zsw</author>
		<pubDate>Thu, 29 Nov 2007 04:15:50 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-115</guid>
		<description>&lt;p&gt;replace
$this-&#62;Auth-&#62;hash = 'sha1';
by
Security::setHash('sha1');&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>replace
$this-&gt;Auth-&gt;hash = &#8217;sha1&#8242;;
by
Security::setHash(&#8217;sha1&#8242;);</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Spout</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-87</link>
		<author>Spout</author>
		<pubDate>Mon, 29 Oct 2007 19:36:53 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-87</guid>
		<description>&lt;p&gt;Thanks, this works successfully!
I see in auth.php that $hash is no present in the class, so I commented it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks, this works successfully!
I see in auth.php that $hash is no present in the class, so I commented it.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jad</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-44</link>
		<author>Jad</author>
		<pubDate>Wed, 17 Oct 2007 15:27:03 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-44</guid>
		<description>&lt;p&gt;@Marc: I wanted to post it here but gwoo preferred I post on the bakery. I've been procrastinating now for a while, it's all written, revised by him and everything, it's only about posting it now; I should kick myself this week and finish with that.
And I completely agree with you on the fact that checking what others are doing is a great way to learn/improve the way we do things ourself and sometimes, realize how good our solution is compared to other, either way it's a plus. 
On a last note, thanks for dropping by!&lt;/p&gt;

&lt;p&gt;Jad&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Marc: I wanted to post it here but gwoo preferred I post on the bakery. I&#8217;ve been procrastinating now for a while, it&#8217;s all written, revised by him and everything, it&#8217;s only about posting it now; I should kick myself this week and finish with that.
And I completely agree with you on the fact that checking what others are doing is a great way to learn/improve the way we do things ourself and sometimes, realize how good our solution is compared to other, either way it&#8217;s a plus. 
On a last note, thanks for dropping by!</p>

<p>Jad</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-43</link>
		<author>Marc</author>
		<pubDate>Wed, 17 Oct 2007 01:03:16 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-43</guid>
		<description>&lt;p&gt;I want tutorials to get a nice kick-start.  Learning how others do things is a great way to check the quality of your own work.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I want tutorials to get a nice kick-start.  Learning how others do things is a great way to check the quality of your own work.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2007-09-27 &#171; Richard@Home</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-18</link>
		<author>links for 2007-09-27 &#171; Richard@Home</author>
		<pubDate>Thu, 27 Sep 2007 05:17:54 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-18</guid>
		<description>&lt;p&gt;[...] Loud Baking » Blog Archive » How to use AuthComponent in CakePHP A practical demonstration of the new Auth component for CakePHP 1.2 (tags: cakephp auth tutorial) [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] Loud Baking » Blog Archive » How to use AuthComponent in CakePHP A practical demonstration of the new Auth component for CakePHP 1.2 (tags: cakephp auth tutorial) [&#8230;]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jad</title>
		<link>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-17</link>
		<author>Jad</author>
		<pubDate>Wed, 26 Sep 2007 14:16:14 +0000</pubDate>
		<guid>http://myeasyscripts.com/loudbaking/how-to-use-authcomponent-in-cakephp/#comment-17</guid>
		<description>&lt;p&gt;@Chris: I hear ya - am that kind too, tutorials and source digging. I tend to compare coding to driving, you can learn the basics and go with that or you can know your shit inside out and optimize it to suit you best - for a relatively big difference in performance and elegance.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Chris: I hear ya - am that kind too, tutorials and source digging. I tend to compare coding to driving, you can learn the basics and go with that or you can know your shit inside out and optimize it to suit you best - for a relatively big difference in performance and elegance.</p>]]></content:encoded>
	</item>
</channel>
</rss>
