Important Update (2007-07-24) : Brian http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-
and-acl-in-cakephp-12/#comment-75">brought to my attention a
problem with multiple actions that have the same name. This problem is
due to an incorrect Sql query in db_acl.php. I have filed https
Hey cakeFreak,
I have a slightly different approach for development bypassing. I
have a condition like
if (Config::read()) {
$this->Auth->allow();
}
This checks if CAKE_DEBUG is greater than 0 and bypass authentication
and authorization.
Personally I think it is safer than the extra propert
Hey Geoff Ford,
cheers for the tutorial!
Great!
I just modified a bit you beforeFilter function in the AppController
to basically allow access to all controllers during development with
ease!
--
On Jul 20, 5:30 am, "Geoff Ford" <[EMAIL PROTECTED]> wrote:
> Thanks R. Rajesh Jeba Anbiah for adding me to the Frequent Discussions page
> (in a couple of places). :D
You're welcome:-) You're also welcome to improve it; it's just a
wiki.
--
Email: rrjanbiah-at-Y!comBlog: http://rajesh
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 t
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, G
I just posted another article pushing this tutorial down the
homepage. Here is the direct link
http://lemoncake.wordpress.com/2007/07/19/using-authcomponent-and-acl-in-cakephp-12/
Geoff
--
http://lemoncake.wordpress.com
On Jul 19, 10:27 pm, Geoff Ford <[EMAIL PROTECTED]> wrote:
> Hey Francky,
>
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
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) :