# HG changeset patch # User Bill Welliver # Date 1346828394 14400 # Wed Sep 05 02:59:54 2012 -0400 # Node ID 6f218a6fa88978ee6c285a05a4d4f92a6053ee2c # Parent d0f79e5b57ce79018978dd537f591610a0533f9d some docs diff --git a/auth/README b/auth/README --- a/auth/README +++ b/auth/README @@ -2,7 +2,7 @@ authentication in an application. This module includes code for dealing with passwords stored in clear text form, as well as MD5-crypted password strings. The default configuration uses plain text passwords, to change to -MD5-crypted passwords, modify the auth class so that the 3 function place +MD5-crypted passwords, modify the auth class so that the 3 function place- holder variables point to the respective MD5 enabled functions contained in the auth class (md5_validate_user, md5_reset_password and md5_find_user_password) @@ -10,6 +10,17 @@ is called "User", and that the user's login name field is called "username" and that the password is stored in a field called "password". +Copy the contents of the classes and templates folders to your application, then +hook the new auth controller into your application by adding something like the +following to your root controller: + +object auth; + +void start() +{ + auth = load_controller("auth/controller"); +} + To make an entire controller accessible by authenticated users only, you'd add the following to your controller: