dAuth = authentication, not authorisation.

If you want a really simple solution (just check if somebody is logged
in or not), you can do $usr =$this->Session->read('User');
from out of your controller
if($usr) // logged in
if(!$usr) //nog logged in
you could put this in your app_controllers beforefilter.

if you want to check from a view, you can check like this
if($User) //logged in
if(!$User) // not logged in

if you want more advanced access control, i suggest you take a look at
cake's ACL, and the nifty plugins/components that are written for it
(you'll find those at the bakery)

Also i'm co-operating with AD7six in creating a secure, solid
authentication & authorisation system, by combining dAuth with Andy's
ACL component.  more on that soon...


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