Thank you both for the helpful suggestions. I am about to test the
suggestions out right now. This is what pavbaker sent to me via e-
mail:

Neil, Hi.

Am a cake beginner myself in the (v1.2.0.6311) AuthComponent, from
what I have seen you need to write the component line
var $components = array('Acl', 'Auth');
Apparently AuthComponent refers to the AclComponent, so components
must be loaded in correct order, Acl first, Auth second.

About the salt -  the default value for Security.salt is set in the
core cake files and the same value is present in the \app files.
Again from what I have found you need to change the salt value in the
\app files so that your project's salt is different from that
of the core build salt value.  The core compares the project value and
punts up the message if both are the same.
Easy to to - go where your project \app files store the salt value in
\app\config\core.php near line 148
where it reads like Configure::write('Security.salt',
'81c81ae03b97bc8c7c21de2d342d601a8ea61797');
and change the value - should be 40 chararacters, just make a couple
of numbers different or reverse some upper/lower case letters.

I have found there is an even easier way - if you bake the project
files at the command line, the a different salt is generated for you.
For a bit of link whoring, I have written on this very topic today at
my blog http://pavbaker.wordpress.com/

I think the problem 2 results from not accesing the AclComponent, not
100% sure, have seen the error a few times in my mucking around.
Also be aware that you will need the acl tables in your db if you use
the AclComponent.

On Jan 26, 7:43 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Jan 25, 2008 8:16 PM, Neil <[EMAIL PROTECTED]> wrote:
>
> > 1. my login page works but gives  the following error: "Notice (1024):
> > Please change the value of 'Security.salt' in app/config/core.php to a
> > salt value specific to your application [CORE\cake\libs\debugger.php,
> > line 535]"
>
> I suggest you actually follow the instructions that this error message
> has given you...and change the value of Security.salt in
> app/config/core.php.
>
> If you're still having problems with getting Auth to work (I
> contributed the section of the documentation on Auth, and there are
> one or two little typos that I need to fix) I suggest you also head on
> over to my blog (link listed below) where there are 4 tutorials on
> working with it.
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to