Thanks R. Rajesh Jeba Anbiah for adding me to the Frequent Discussions page
(in a couple of places). :D

Geoff

On 7/19/07, francky06l < [EMAIL PROTECTED]> wrote:
>
>
> Just forgot obe thing for the password when using another fieldname
> (avoid the hash). Before saving the record you should hash the
> password :
>
>   $this->data['User']['password'] = $this->Auth->password($this-
> >data['User']['dummypassword']);
>   $this->User->save($this->data);
>
>
> On Jul 19, 2:42 pm, Geoff Ford <[EMAIL PROTECTED]> wrote:
> > I just posted another article pushing this tutorial down the
> > homepage.  Here is the direct
> linkhttp://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl...
> >
> > Geoff
> > --http://lemoncake.wordpress.com
> >
> > On Jul 19, 10:27 pm, Geoff Ford <[EMAIL PROTECTED]> wrote:
> >
> > > Hey Francky,
> >
> > > Thanks for the input.
> >
> > > userScope - I haven't used it past  the user model, could be a problem
>
> > > when disabling groups...hmmm
> > > hashPassword - excellent tip. Thank you for that
> >
> > > Role checking - see the latest post on my blog called Acl with Groups
> > > (just finished writing it)  It shows how to make a user aro a child of
>
> > > group aro.  Then Acl will work as expected.  I struggled with this for
> > > ages as I wanted to use group level permissions too.  Might be what
> > > you are looking for ;)
> >
> > > Geoff
> > > --http://lemoncake.wordpress.com
> >
> > > On Jul 19, 10:20 pm, francky06l <[EMAIL PROTECTED]> wrote:
> >
> > > > 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
>
>
> >
>


-- 
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 [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