Hey Geoff, great article.

Just some details :

userScope :
  - is used only if you use the login method (calling identify) of the
Auth
  - the model->find of the identify function set the recursive flag to
-1, so forbidden such userScope (in case of disabling a group, User
belongsTo Group) :
          array('Group.disabled' => 0,  'User.disabled' => 0);

hashPassword :
  - if Auth component is included, it will has all field named
"password" in all views (as you mentionned). I had a "changePassword"
method where I verified the "strenght" of password. Of couse
verification could not be done then, the trick change the field name.

For the ACL check call, actually I did not yet find the solution for
checking ACL using the "role" for example or the "group_id" .. Well
the solution is to call directly the Acl in before filter, but would
be nice to handle everything in the Auth component.

Anyway, very helpful article.

Thanks
Franck



m, Geoff Ford <[EMAIL PROTECTED]> wrote:
> I have posted a tutorial on my blog about using the AuthComponet as
> promised. As always, feedback and suggestions encouraged.
>
> Also, is it good form to add your own articles to the Frequent
> Discussions page.  There is an "How to  use the 1.2's Auth component?"
> section that I think my post belongs in?
>
> Geoff
> --http://lemoncake.wordpress.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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