Authentication is all built into FarCry.  To create a members section and take advantage of FarCry's authentication features your membership database really needs to be in FarCry (there aren't enough hooks at the low level to completely replace the authentication mechanisms - YET - aside from Active Directory and NT Authentication, which are built-in to FarCry).  If you dont want to use FarCry's built-in permissioning, then you would need to perform your own call at the top of your authenticated pages to check your own authentication system.
 
HOWEVER, If you protect the page using the FarCry permissions (in the FarCry site Admin tool) then, if a user is not authenticated for a page, they will be challenged to log in.
 
The DEFAULT login page is the same as is for the Admin tool.  You can replace this page by copying the existing FarCry login page (from farcry_core/tags/navajo/login.cfm) into your application directory (under <yourapp>/customadmin/login) - make sure it is the same name.  Then you can style the login page anyway you like (just make sure the FarCry code in the copied login.cfm - in essence - stays the same or things might not work).  NOTE: if you do replace it it will also be replaced for the Admin tool (i.e. you can't have one login page for the Admin tool and a different one for your app).  Of course, you could code your own login page to behave differently based on the URL context it was being run in - I guess).
 
You don't have to set any variables - but you do have to make sure that login.cfm code works properly.
 
FarCry checks for your overriding login page before resorting to the default one.
 
We ported our 20,000+ member database across into the FarCry user tables (dmUser and dmProfile).

 
On 6/13/05, Michael Porter <[EMAIL PROTECTED]> wrote:
Sorry I don't understand.

If I was to write a member's section for my website, I understand how to protect the folder with a custom login page, this i've built and it authenticates using a SQL database. What I don't understand is what variables do I need to establish in order to authenticate the user so far as Farcry recognising that the user is authenticated for that page/folder.

Regards,
Mike

--- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to