Re: LiveUser and anonymous users

From: Date: Wed, 15 Jun 2005 08:51:48 +0000
Subject: Re: LiveUser and anonymous users
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19629@lists.php.net to get a copy of this message
Rodrigo Alvarez wrote:
Hi PEARs, This could seem stupid, but i don't know how to grant access to guest users. In my site, each page is an application, and checkRight() is beign called on each request. I want guest users to access the index, login, and register pages. How can I do that? Is it possible, or must I skip the checkRight() call (not possible atm)?
we dont have anonymous users implemented. it should actually not be all that difficult to do. for now the only way i have found to handle this is making my rights configureable and setting all the rights that I want anonymous users to be able to execute to NULL. LiveUser always returns true if the right_id to check is NULL. Another possible way is to write a new auth container or abuse the session auth container to login all users that did not supply any username/password. This is a bit inconvinient however, since we lack a good method to require more "proper" authentication means in other parts of your system (better handling is what runs as weak/strong authentication in the roadmap). regards, Lukas

« previous php.pear.general (#19629) next »