Hi list,
I've got a auth system based heavily on the examples in the docs.
A little background:
home.php: the "index page" for an authenticated user
welcome.php: my login form (replacing loginform.ihtml)
Basically, you go to the site and are taken to home.php. You're not
authenticated yet, so you see welcome.php. You can then log in and
access the rest of the site. This works great.
Now, I show a footer on all pages (including welcome.php) that has
copyright info with links to a few things such as a Terms of Use
document. All documents and articles on the site are viewed through
library.php (which parses the articles into a template). Library.php
uses my normal auth class and works fine, as long as the user is logged
in, which is what I want...most of the time.
However, I need to be able to grant access to Terms of Use, etc. to
users who haven't logged in (such as viewing the document from
welcome.php).
The Default Auth feature seems like it should do the trick, but it's
not working. I've set library.php to use my default_auth subclass, but
I'm still getting the login page when I try to access library.php.
My default_auth subclass is just like the one in the docs.
Any ideas?
Thanks,
Jacob
|