<?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 Auth Component For Dummies Tutorial</title>
	<atom:link href="http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/</link>
	<description>Quick and Dirty Web Development for Web 2.0: CakePHP, Prototype, JQuery, and lots more.</description>
	<lastBuildDate>Sat, 06 Mar 2010 13:23:33 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: CakePHP and the (in)famous Auth component &#171; Westsworld</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-4/#comment-28414</link>
		<dc:creator>CakePHP and the (in)famous Auth component &#171; Westsworld</dc:creator>
		<pubDate>Wed, 24 Feb 2010 23:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-28414</guid>
		<description>[...] are explained here A Hopefully Useful Tutorial For Using CakePHP’s Auth Component and CakePHP Auth Component For Dummies Tutorial (so no need to go through it here as [...]</description>
		<content:encoded><![CDATA[<p>[...] are explained here A Hopefully Useful Tutorial For Using CakePHP’s Auth Component and CakePHP Auth Component For Dummies Tutorial (so no need to go through it here as [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Foroct Fralion</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-4/#comment-28297</link>
		<dc:creator>Foroct Fralion</dc:creator>
		<pubDate>Tue, 29 Dec 2009 03:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-28297</guid>
		<description>sorry I meant to say

$this-&gt;Auth-&gt;loginRedirect = array(‘controller’ =&gt; ‘users’, ‘action’ =&gt; ‘view’, $auth[&#039;User&#039;][&#039;username&#039;] );

Obviously passing the password field would not work</description>
		<content:encoded><![CDATA[<p>sorry I meant to say</p>
<p>$this-&gt;Auth-&gt;loginRedirect = array(‘controller’ =&gt; ‘users’, ‘action’ =&gt; ‘view’, $auth['User']['username'] );</p>
<p>Obviously passing the password field would not work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Foroct Fralion</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-4/#comment-28296</link>
		<dc:creator>Foroct Fralion</dc:creator>
		<pubDate>Tue, 29 Dec 2009 03:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-28296</guid>
		<description>Thanks for this tutorial it has helped me to do many of the things I wanted to do with my cake project. 

I am having one problem though.  I want a user to be able to log in and be redirected to their user page.  Your example shows $this-&gt;Auth-&gt;loginRedirect = array(‘controller’ =&gt; ‘pages’, ‘display’ =&gt; ‘home’) and I know that by calling $auth[&#039;User&#039;][&#039;username&#039;] I can call up the logged in users username so I figured that I could use 

$this-&gt;Auth-&gt;loginRedirect = array(&#039;controller&#039; =&gt; &#039;users&#039;, &#039;action&#039; =&gt; &#039;view&#039;, $auth[&#039;User&#039;][&#039;password&#039;] );

but that doesn&#039;t work.  Do you have any thoughts as to how I would allow a person to log in and redirect them to a their user page (/users/view/username)?

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial it has helped me to do many of the things I wanted to do with my cake project. </p>
<p>I am having one problem though.  I want a user to be able to log in and be redirected to their user page.  Your example shows $this-&gt;Auth-&gt;loginRedirect = array(‘controller’ =&gt; ‘pages’, ‘display’ =&gt; ‘home’) and I know that by calling $auth['User']['username'] I can call up the logged in users username so I figured that I could use </p>
<p>$this-&gt;Auth-&gt;loginRedirect = array(&#8216;controller&#8217; =&gt; &#8216;users&#8217;, &#8216;action&#8217; =&gt; &#8216;view&#8217;, $auth['User']['password'] );</p>
<p>but that doesn&#8217;t work.  Do you have any thoughts as to how I would allow a person to log in and redirect them to a their user page (/users/view/username)?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Lloyd</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-4/#comment-28043</link>
		<dc:creator>Kevin Lloyd</dc:creator>
		<pubDate>Fri, 06 Nov 2009 05:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-28043</guid>
		<description>I didn&#039;t notice this for a long while. Thank you.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t notice this for a long while. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-4/#comment-28034</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 24 Oct 2009 16:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-28034</guid>
		<description>I&#039;m interested in downloading the source files for this tutorial, but the page says that &quot;You need to be a registered user to download this file.&quot;, but I can&#039;t find any way of registering.</description>
		<content:encoded><![CDATA[<p>I&#8217;m interested in downloading the source files for this tutorial, but the page says that &#8220;You need to be a registered user to download this file.&#8221;, but I can&#8217;t find any way of registering.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27957</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Sun, 13 Sep 2009 16:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27957</guid>
		<description>$this-&gt;Auth-&gt;authorize = ...; allows you to set
function isAuthorized(){
...
}
and you can determine how the user is actually authorized instead of having the AuthComponent do it automatically by comparing the user model.
So setting it to &#039;controller&#039; you would define the isAuthorized() method in your controller.
You could also set it to &#039;model&#039; and stick the isAuthorized() method inside the model.  There are also more settings such as &#039;actions&#039; and &#039;crud&#039; which are explained in more detail at http://book.cakephp.org/view/248/AuthComponent-Variables
-Sam</description>
		<content:encoded><![CDATA[<p>$this-&gt;Auth-&gt;authorize = &#8230;; allows you to set<br />
function isAuthorized(){<br />
&#8230;<br />
}<br />
and you can determine how the user is actually authorized instead of having the AuthComponent do it automatically by comparing the user model.<br />
So setting it to &#8216;controller&#8217; you would define the isAuthorized() method in your controller.<br />
You could also set it to &#8216;model&#8217; and stick the isAuthorized() method inside the model.  There are also more settings such as &#8216;actions&#8217; and &#8216;crud&#8217; which are explained in more detail at <a href="http://book.cakephp.org/view/248/AuthComponent-Variables" rel="nofollow">http://book.cakephp.org/view/248/AuthComponent-Variables</a><br />
-Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wahid Sadik</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27936</link>
		<dc:creator>Wahid Sadik</dc:creator>
		<pubDate>Mon, 17 Aug 2009 01:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27936</guid>
		<description>Kevin, this is exactly what I needed. Thank you so much for the tutorial.</description>
		<content:encoded><![CDATA[<p>Kevin, this is exactly what I needed. Thank you so much for the tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lien</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27930</link>
		<dc:creator>lien</dc:creator>
		<pubDate>Mon, 03 Aug 2009 09:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27930</guid>
		<description>I also got the file does not exist. Are we doing something wrong?</description>
		<content:encoded><![CDATA[<p>I also got the file does not exist. Are we doing something wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kodegeek</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27916</link>
		<dc:creator>kodegeek</dc:creator>
		<pubDate>Tue, 14 Jul 2009 09:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27916</guid>
		<description>I&#039;m facing a strange problem, allowed an action for users controller(forgetpassword) from app controller but it doesn&#039;t allow to access. any sol???</description>
		<content:encoded><![CDATA[<p>I&#8217;m facing a strange problem, allowed an action for users controller(forgetpassword) from app controller but it doesn&#8217;t allow to access. any sol???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cake php auth tutorial for dummies &#124; Unconventional Lippolis</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27915</link>
		<dc:creator>Cake php auth tutorial for dummies &#124; Unconventional Lippolis</dc:creator>
		<pubDate>Fri, 10 Jul 2009 11:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27915</guid>
		<description>[...] php auth tutorial for dummies http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/   Tags auth, cakephp, tutorial Categories [...]</description>
		<content:encoded><![CDATA[<p>[...] php auth tutorial for dummies <a href="http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/" rel="nofollow">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/</a>   Tags auth, cakephp, tutorial Categories [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cakephp Auth tutorial: http://www.webdev&#8230; &#124; Simone Lippolis' bookmarks</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27914</link>
		<dc:creator>Cakephp Auth tutorial: http://www.webdev&#8230; &#124; Simone Lippolis' bookmarks</dc:creator>
		<pubDate>Fri, 03 Jul 2009 15:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27914</guid>
		<description>[...] Auth tutorial: http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/   [...]</description>
		<content:encoded><![CDATA[<p>[...] Auth tutorial: <a href="http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/" rel="nofollow">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/</a>   [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baz L</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27771</link>
		<dc:creator>Baz L</dc:creator>
		<pubDate>Sun, 14 Dec 2008 04:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27771</guid>
		<description>Not a problem. I&#039;ve been dragging my feet about doing an appropriate followup</description>
		<content:encoded><![CDATA[<p>Not a problem. I&#8217;ve been dragging my feet about doing an appropriate followup</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Arif Hossen</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27770</link>
		<dc:creator>Mohammad Arif Hossen</dc:creator>
		<pubDate>Sun, 14 Dec 2008 04:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27770</guid>
		<description>Thanks for Auth Tutorial.</description>
		<content:encoded><![CDATA[<p>Thanks for Auth Tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bakephp</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27570</link>
		<dc:creator>bakephp</dc:creator>
		<pubDate>Tue, 30 Sep 2008 06:02:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27570</guid>
		<description>i tried downloading the file it gives
&quot;File does not exist.&quot;  =(</description>
		<content:encoded><![CDATA[<p>i tried downloading the file it gives<br />
&#8220;File does not exist.&#8221;  =(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27560</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Thu, 28 Aug 2008 15:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27560</guid>
		<description>I&#039;m just beginning with Cake and maybe the question seems stupid, but... I have copied the files from archive to the Cake&#039;s &#039;app&#039; folder, created the database by executing the SQL script in the &#039;auth.sql&#039; file and configured &#039;database.php&#039; and &#039;core.php&#039; files just like I did for the Cake&#039;s blog tutorial. Then I pointed Firefox to &#039;localhost/cake/users/login&#039;, entered some data into the username and password fields and hit &#039;Sign in&#039;, but nothing happened (I also tried to add some users to the &#039;users&#039; table - same story). Only query in the log table below the login form changes...
Is it supposed to be that way?

P.S. I use Cake 1.2 RC2</description>
		<content:encoded><![CDATA[<p>I&#8217;m just beginning with Cake and maybe the question seems stupid, but&#8230; I have copied the files from archive to the Cake&#8217;s &#8216;app&#8217; folder, created the database by executing the SQL script in the &#8216;auth.sql&#8217; file and configured &#8216;database.php&#8217; and &#8216;core.php&#8217; files just like I did for the Cake&#8217;s blog tutorial. Then I pointed Firefox to &#8216;localhost/cake/users/login&#8217;, entered some data into the username and password fields and hit &#8216;Sign in&#8217;, but nothing happened (I also tried to add some users to the &#8216;users&#8217; table &#8211; same story). Only query in the log table below the login form changes&#8230;<br />
Is it supposed to be that way?</p>
<p>P.S. I use Cake 1.2 RC2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-3/#comment-27558</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sun, 24 Aug 2008 00:34:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27558</guid>
		<description>I suppose the more appropriate question is, not why is it overriding app_controller.php, but is there a way around this so I can allow entire controllers?</description>
		<content:encoded><![CDATA[<p>I suppose the more appropriate question is, not why is it overriding app_controller.php, but is there a way around this so I can allow entire controllers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-2/#comment-27557</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sat, 23 Aug 2008 22:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27557</guid>
		<description>Thanks for the tutorial... It&#039;s helped me out.  I have a question though regarding this:

&quot;You can also add to this in the beforeFilter() of each controller you you need (donâ€™t forget the parent::beforeFilter() to make sure the Auth stuff is still called)&quot;

I added the allow method to the beforeFilter in a controller and added &quot;parent::BeforeFilter()&quot;, but it the allow method in app_controller.php is overriding the individual controller.  Any ideas why?  Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial&#8230; It&#8217;s helped me out.  I have a question though regarding this:</p>
<p>&#8220;You can also add to this in the beforeFilter() of each controller you you need (donâ€™t forget the parent::beforeFilter() to make sure the Auth stuff is still called)&#8221;</p>
<p>I added the allow method to the beforeFilter in a controller and added &#8220;parent::BeforeFilter()&#8221;, but it the allow method in app_controller.php is overriding the individual controller.  Any ideas why?  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-2/#comment-27554</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 11 Aug 2008 12:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27554</guid>
		<description>I think this component has problems in Apache sometimes, as it will create a session in the file system if you set session type to &#039;cake&#039; in the /app/config/core.php, but it does seem to just submit the form and then jump back to the login page.

I have set,
$this-&gt;Auth-&gt;loginRedirect = array(&#039;controller&#039; =&gt; &#039;pages&#039;, &#039;action&#039; =&gt; &#039;display&#039;, &#039;loggedin&#039;);

In order to see if the login works correctly, but it doesn&#039;t seem to. I think a second or even third instalment of this fantastic article would be great as doing login&#039;s in cake atm is a real pain in the ass and getting a component to just work would be fabulous!</description>
		<content:encoded><![CDATA[<p>I think this component has problems in Apache sometimes, as it will create a session in the file system if you set session type to &#8216;cake&#8217; in the /app/config/core.php, but it does seem to just submit the form and then jump back to the login page.</p>
<p>I have set,<br />
$this-&gt;Auth-&gt;loginRedirect = array(&#8216;controller&#8217; =&gt; &#8216;pages&#8217;, &#8216;action&#8217; =&gt; &#8216;display&#8217;, &#8216;loggedin&#8217;);</p>
<p>In order to see if the login works correctly, but it doesn&#8217;t seem to. I think a second or even third instalment of this fantastic article would be great as doing login&#8217;s in cake atm is a real pain in the ass and getting a component to just work would be fabulous!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johannes Fahrenkrug</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-2/#comment-27546</link>
		<dc:creator>Johannes Fahrenkrug</dc:creator>
		<pubDate>Thu, 31 Jul 2008 15:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27546</guid>
		<description>Nice article, thanks. For anyone interested, I wrote a custom cakephp shell for creating users with authcomponent: http://blog.springenwerk.com/2008/07/cakephp-creating-custom-shell-for.html

- Johannes</description>
		<content:encoded><![CDATA[<p>Nice article, thanks. For anyone interested, I wrote a custom cakephp shell for creating users with authcomponent: <a href="http://blog.springenwerk.com/2008/07/cakephp-creating-custom-shell-for.html" rel="nofollow">http://blog.springenwerk.com/2008/07/cakephp-creating-custom-shell-for.html</a></p>
<p>- Johannes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baz L</title>
		<link>http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/comment-page-2/#comment-27527</link>
		<dc:creator>Baz L</dc:creator>
		<pubDate>Thu, 12 Jun 2008 14:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/#comment-27527</guid>
		<description>This isn&#039;t a full example. You cut and paste where necessary.</description>
		<content:encoded><![CDATA[<p>This isn&#8217;t a full example. You cut and paste where necessary.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
